소스 검색

ENH: make cmake build with older versions of cmake

Bill Hoffman 19 년 전
부모
커밋
2350085120
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      Utilities/cmtar/CMakeLists.txt

+ 3 - 1
Utilities/cmtar/CMakeLists.txt

@@ -252,7 +252,9 @@ int main ()
   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)
 #SET (MAKEDEV_THREE_ARGS 0)
 #SET (NEED_BASENAME 0)