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

This commit is contained in:
Bill Hoffman 2006-08-03 13:41:52 -04:00
parent 61aa4afd1e
commit 831492a9d7
1 changed files with 3 additions and 3 deletions

View File

@ -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)