ENH: make cmake build with older versions of cmake

This commit is contained in:
Bill Hoffman 2006-08-01 16:01:44 -04:00
parent 89fb18f548
commit 2350085120
1 changed files with 3 additions and 1 deletions

View File

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