diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-03-17 21:14:04 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-03-17 21:14:04 (GMT) |
commit | b507f8f0d1c1b678e1e9f01d2fd10a86bc4b5348 (patch) | |
tree | 76f27d2303656292b57a7e7d8129056755beb0c8 /Source/CMakeLists.txt | |
parent | 84f1420d82e725cae6ca3873c52473046e4debef (diff) | |
download | CMake-b507f8f0d1c1b678e1e9f01d2fd10a86bc4b5348.zip CMake-b507f8f0d1c1b678e1e9f01d2fd10a86bc4b5348.tar.gz CMake-b507f8f0d1c1b678e1e9f01d2fd10a86bc4b5348.tar.bz2 |
ENH: Simplify the test
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index a451e14..f176751 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -23,23 +23,6 @@ INCLUDE_DIRECTORIES( # let cmake know it is supposed to use it ADD_DEFINITIONS(-DCMAKE_BUILD_WITH_CMAKE) -INCLUDE(CheckSymbolExists) -CHECK_SYMBOL_EXISTS(unsetenv "stdlib.h" HAVE_UNSETENV) -INCLUDE("${CMAKE_SOURCE_DIR}/Modules/CheckCXXSourceCompiles.cmake") -CHECK_CXX_SOURCE_COMPILES( - "int main(int argc, char* argv[]) { return sizeof(environ); }" - HAVE_ENVIRON_WITHOUT_SIGNATURE) -IF(NOT HAVE_ENVIRON_WITHOUT_SIGNATURE) - CHECK_CXX_SOURCE_COMPILES( - " - #ifdef _WIN32 - extern __declspec( dllimport ) char** environ; - #else - extern char** environ; - #endif - int main(int argc, char* argv[]) { return sizeof(environ); }" - HAVE_ENVIRON_WITH_SIGNATURE) -ENDIF(NOT HAVE_ENVIRON_WITHOUT_SIGNATURE) OPTION(CMAKE_REGENERATE_YACCLEX "Regenerate YACC and LEXX files" OFF) |