Browse Source

ENH: change to a try run so that it will fail on the sun

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

+ 3 - 3
Utilities/cmtar/CMakeLists.txt

@@ -255,11 +255,11 @@ int main ()
 # get this from the source tree since it was not in the previous
 # version of cmake and cmake need to build cmake
 IF("${CMake_SOURCE_DIR}" STREQUAL "")
-  INCLUDE(CheckCSourceCompiles)
+  INCLUDE(CheckCSourceRuns)
 ELSE("${CMake_SOURCE_DIR}" STREQUAL "")
-  INCLUDE(${CMake_SOURCE_DIR}/Modules/CheckCSourceCompiles.cmake)
+  INCLUDE(${CMake_SOURCE_DIR}/Modules/CheckCSourceRuns.cmake)
 ENDIF("${CMake_SOURCE_DIR}" STREQUAL "")
-CHECK_C_SOURCE_COMPILES("${CMAKE_MAKEDEV_SOURCE}" MAKEDEV_THREE_ARGS)
+CHECK_C_SOURCE_RUNS("${CMAKE_MAKEDEV_SOURCE}" MAKEDEV_THREE_ARGS)
 #SET (MAKEDEV_THREE_ARGS 0)
 #SET (NEED_BASENAME 0)
 #SET (NEED_DIRNAME 0)