diff options
author | Brad King <brad.king@kitware.com> | 2009-11-05 21:29:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-11-05 21:29:21 (GMT) |
commit | d7ef7e9416e4fd758c4777d63aeb0ee1a40d87d2 (patch) | |
tree | c8a1fd9927b9f04dd2410c0ff6f76a79eb25e4ac /Utilities/cmlibarchive/CMakeLists.txt | |
parent | fe598550aa0a75e0bb379c9527a538229e703ef0 (diff) | |
download | CMake-d7ef7e9416e4fd758c4777d63aeb0ee1a40d87d2.zip CMake-d7ef7e9416e4fd758c4777d63aeb0ee1a40d87d2.tar.gz CMake-d7ef7e9416e4fd758c4777d63aeb0ee1a40d87d2.tar.bz2 |
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.
Diffstat (limited to 'Utilities/cmlibarchive/CMakeLists.txt')
-rw-r--r-- | Utilities/cmlibarchive/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt index 2c23105..636ca14 100644 --- a/Utilities/cmlibarchive/CMakeLists.txt +++ b/Utilities/cmlibarchive/CMakeLists.txt @@ -406,6 +406,9 @@ CHECK_SYMBOL_EXISTS(strerror_r "string.h" HAVE_STRERROR_R) CHECK_SYMBOL_EXISTS(strftime "time.h" HAVE_STRFTIME) 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) ENDIF(HAVE_STRERROR_R) |