View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0005588 | CMake | Modules | public | 2007-08-28 04:49 | 2010-08-04 01:16 |
|
Reporter | dizzy | |
Assigned To | Kovarththanan Rajaratnam | |
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | CMake-2-8 | |
|
Summary | 0005588: FindZLIB patch to lookup registry settings for GnuWin32 installed version |
Description | Hello
Please consider the attached patch that adds registry lookup for the values set when installing zlib from the GnuWin32 packages (gnuwin32.sf.net). This makes it easier to find ZLib includes/libs if such a version is installed. The patch was based on FindZLIB.cmake as provided from cmake 2.4.6. |
Tags | No tags attached. |
|
Attached Files | FindZLIB.cmake.diff [^] (593 bytes) 2007-08-28 04:49 [Show Content] [Hide Content]--- FindZLIB.cmake.orig 2007-08-27 21:39:12.000000000 +0300
+++ FindZLIB.cmake 2007-08-27 21:41:14.000000000 +0300
@@ -12,6 +12,7 @@
ENDIF (ZLIB_INCLUDE_DIR)
FIND_PATH(ZLIB_INCLUDE_DIR zlib.h
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\Zlib;InstallPath]/include"
/usr/local/include
/usr/include
)
@@ -19,7 +20,9 @@
SET(ZLIB_NAMES z zlib zdll)
FIND_LIBRARY(ZLIB_LIBRARY
NAMES ${ZLIB_NAMES}
- PATHS /usr/lib /usr/local/lib
+ PATHS
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\Zlib;InstallPath]/lib"
+ /usr/lib /usr/local/lib
)
IF (ZLIB_INCLUDE_DIR AND ZLIB_LIBRARY)
|
|