Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
51c0f04a
Commit
51c0f04a
authored
Sep 07, 2008
by
f3nix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update FindZLIB.cmake to version 2.6.1 + add MSYS path.
parent
422ffdab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
33 deletions
+19
-33
FindZLIB.cmake
CMakeModules/FindZLIB.cmake
+19
-33
No files found.
CMakeModules/FindZLIB.cmake
View file @
51c0f04a
#
# From CMake 2.6.1 + some path changes
#
# - Find zlib
# Find the native ZLIB includes and library
#
...
...
@@ -16,38 +20,20 @@ IF (ZLIB_INCLUDE_DIR)
SET
(
ZLIB_FIND_QUIETLY TRUE
)
ENDIF
(
ZLIB_INCLUDE_DIR
)
FIND_PATH
(
ZLIB_INCLUDE_DIR zlib.h
/usr/local/include
/usr/include
${
ZLIB_DIR_SEARCH
}
/local/include
)
FIND_PATH
(
ZLIB_INCLUDE_DIR zlib.h PATHS
${
ZLIB_DIR_SEARCH
}
/local/include
)
SET
(
ZLIB_NAMES z zlib zdll
)
FIND_LIBRARY
(
ZLIB_LIBRARY
NAMES
${
ZLIB_NAMES
}
PATHS /usr/lib /usr/local/lib
${
ZLIB_DIR_SEARCH
}
/local/lib
)
IF
(
ZLIB_INCLUDE_DIR AND ZLIB_LIBRARY
)
SET
(
ZLIB_FOUND TRUE
)
SET
(
ZLIB_LIBRARIES
${
ZLIB_LIBRARY
}
)
ELSE
(
ZLIB_INCLUDE_DIR AND ZLIB_LIBRARY
)
SET
(
ZLIB_FOUND FALSE
)
SET
(
ZLIB_LIBRARIES
)
ENDIF
(
ZLIB_INCLUDE_DIR AND ZLIB_LIBRARY
)
IF
(
ZLIB_FOUND
)
IF
(
NOT ZLIB_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found ZLIB:
${
ZLIB_LIBRARY
}
"
)
ENDIF
(
NOT ZLIB_FIND_QUIETLY
)
ELSE
(
ZLIB_FOUND
)
IF
(
ZLIB_FIND_REQUIRED
)
MESSAGE
(
STATUS
"Looked for Z libraries named
${
ZLIBS_NAMES
}
."
)
MESSAGE
(
FATAL_ERROR
"Could NOT find z library"
)
ENDIF
(
ZLIB_FIND_REQUIRED
)
ENDIF
(
ZLIB_FOUND
)
MARK_AS_ADVANCED
(
ZLIB_LIBRARY
ZLIB_INCLUDE_DIR
)
FIND_LIBRARY
(
ZLIB_LIBRARY NAMES
${
ZLIB_NAMES
}
PATHS
${
ZLIB_DIR_SEARCH
}
/local/lib
)
# handle the QUIETLY and REQUIRED arguments and set ZLIB_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE
(
FindPackageHandleStandardArgs
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS
(
ZLIB DEFAULT_MSG ZLIB_LIBRARY ZLIB_INCLUDE_DIR
)
IF
(
ZLIB_FOUND
)
SET
(
ZLIB_LIBRARIES
${
ZLIB_LIBRARY
}
)
ELSE
(
ZLIB_FOUND
)
SET
(
ZLIB_LIBRARIES
)
ENDIF
(
ZLIB_FOUND
)
MARK_AS_ADVANCED
(
ZLIB_LIBRARY ZLIB_INCLUDE_DIR
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment