Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
3f5d67bc
Commit
3f5d67bc
authored
14 years ago
by
Aleric Inglewood
Browse files
Options
Downloads
Patches
Plain Diff
VWR-24261: Configuration with cmake 2.8 is extremely slow
Add non-broken FindZLIB.cmake.
parent
a9021607
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/contributions.txt
+1
-0
1 addition, 0 deletions
doc/contributions.txt
indra/cmake/CMakeLists.txt
+1
-0
1 addition, 0 deletions
indra/cmake/CMakeLists.txt
indra/cmake/FindZLIB.cmake
+46
-0
46 additions, 0 deletions
indra/cmake/FindZLIB.cmake
with
48 additions
and
0 deletions
doc/contributions.txt
+
1
−
0
View file @
3f5d67bc
...
...
@@ -77,6 +77,7 @@ Aleric Inglewood
VWR-24247
VWR-24251
VWR-24252
VWR-24261
SNOW-84
SNOW-477
SNOW-744
...
...
This diff is collapsed.
Click to expand it.
indra/cmake/CMakeLists.txt
+
1
−
0
View file @
3f5d67bc
...
...
@@ -33,6 +33,7 @@ set(cmake_SOURCE_FILES
FindMySQL.cmake
FindOpenJPEG.cmake
FindXmlRpcEpi.cmake
FindZLIB.cmake
FMOD.cmake
FreeType.cmake
GStreamer010Plugin.cmake
...
...
This diff is collapsed.
Click to expand it.
indra/cmake/FindZLIB.cmake
0 → 100644
+
46
−
0
View file @
3f5d67bc
# -*- cmake -*-
# - Find zlib
# Find the ZLIB includes and library
# This module defines
# ZLIB_INCLUDE_DIRS, where to find zlib.h, etc.
# ZLIB_LIBRARIES, the libraries needed to use zlib.
# ZLIB_FOUND, If false, do not try to use zlib.
#
# This FindZLIB is about 43 times as fast the one provided with cmake (2.8.x),
# because it doesn't look up the version of zlib, resulting in a dramatic
# speed up for configure (from 4 minutes 22 seconds to 6 seconds).
#
# Note: Since this file is only used for standalone, the windows
# specific parts were left out.
FIND_PATH
(
ZLIB_INCLUDE_DIR zlib.h
NO_SYSTEM_ENVIRONMENT_PATH
)
FIND_LIBRARY
(
ZLIB_LIBRARY z
)
if
(
ZLIB_LIBRARY AND ZLIB_INCLUDE_DIR
)
SET
(
ZLIB_INCLUDE_DIRS
${
ZLIB_INCLUDE_DIR
}
)
SET
(
ZLIB_LIBRARIES
${
ZLIB_LIBRARY
}
)
SET
(
ZLIB_FOUND
"YES"
)
else
(
ZLIB_LIBRARY AND ZLIB_INCLUDE_DIR
)
SET
(
ZLIB_FOUND
"NO"
)
endif
(
ZLIB_LIBRARY AND ZLIB_INCLUDE_DIR
)
if
(
ZLIB_FOUND
)
if
(
NOT ZLIB_FIND_QUIETLY
)
message
(
STATUS
"Found ZLIB:
${
ZLIB_LIBRARIES
}
"
)
SET
(
ZLIB_FIND_QUIETLY TRUE
)
endif
(
NOT ZLIB_FIND_QUIETLY
)
else
(
ZLIB_FOUND
)
if
(
ZLIB_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Could not find ZLIB library"
)
endif
(
ZLIB_FIND_REQUIRED
)
endif
(
ZLIB_FOUND
)
mark_as_advanced
(
ZLIB_LIBRARY
ZLIB_INCLUDE_DIR
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment