Browse Source

ENH: make cmake build with older versions of cmake

Bill Hoffman 19 years ago
parent
commit
2350085120
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Utilities/cmtar/CMakeLists.txt

+ 3 - 1
Utilities/cmtar/CMakeLists.txt

@@ -252,7 +252,9 @@ int main ()
   return 0;
   return 0;
 }
 }
 ")
 ")
-INCLUDE(CheckCSourceCompiles)
+# get this from the source tree since it was not in the previous
+# version of cmake and cmake need to build cmake
+INCLUDE(${CMake_SOURCE_DIR}/Modules/CheckCSourceCompiles.cmake)
 CHECK_C_SOURCE_COMPILES("${CMAKE_MAKEDEV_SOURCE}" MAKEDEV_THREE_ARGS)
 CHECK_C_SOURCE_COMPILES("${CMAKE_MAKEDEV_SOURCE}" MAKEDEV_THREE_ARGS)
 #SET (MAKEDEV_THREE_ARGS 0)
 #SET (MAKEDEV_THREE_ARGS 0)
 #SET (NEED_BASENAME 0)
 #SET (NEED_BASENAME 0)