[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.8 1.9
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Nov 5 16:29:23 EST 2009
Update of /cvsroot/CMake/CMake/Utilities/cmlibarchive
In directory public:/mounts/ram/cvs-serv13570/Utilities/cmlibarchive
Modified Files:
CMakeLists.txt
Log Message:
libarchive: Add try-compile for 'major'
The commit "Fix libarchive linker errors on SunOS for mkdev/major/minor"
hard-coded #include lines for getting mkdev/major/minor on the Sun.
Instead we add missing try-compile tests to make sure the proper headers
get included through the standard mechanism.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Utilities/cmlibarchive/CMakeLists.txt,v
retrieving revision 1.8
retrieving revision 1.9
diff -C 2 -d -r1.8 -r1.9
*** CMakeLists.txt 5 Nov 2009 20:54:19 -0000 1.8
--- CMakeLists.txt 5 Nov 2009 21:29:21 -0000 1.9
***************
*** 407,410 ****
--- 407,413 ----
CHECK_SYMBOL_EXISTS(vprintf "stdio.h" HAVE_VPRINTF)
+ CHECK_SYMBOL_EXISTS(major "sys/mkdev.h" MAJOR_IN_MKDEV)
+ CHECK_SYMBOL_EXISTS(major "sys/sysmacros.h" MAJOR_IN_SYSMACROS)
+
IF(HAVE_STRERROR_R)
SET(HAVE_DECL_STRERROR_R 1)
More information about the Cmake-commits
mailing list