COMP: libtar should build when included in non-CMake projects...

This commit is contained in:
David Cole 2006-08-02 12:51:40 -04:00
parent 221b34392b
commit 8f0697c4f5
1 changed files with 5 additions and 1 deletions

View File

@ -254,7 +254,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
INCLUDE(${CMake_SOURCE_DIR}/Modules/CheckCSourceCompiles.cmake)
IF("${CMake_SOURCE_DIR}" STREQUAL "")
INCLUDE(CheckCSourceCompiles)
ELSE("${CMake_SOURCE_DIR}" STREQUAL "")
INCLUDE(${CMake_SOURCE_DIR}/Modules/CheckCSourceCompiles.cmake)
ENDIF("${CMake_SOURCE_DIR}" STREQUAL "")
CHECK_C_SOURCE_COMPILES("${CMAKE_MAKEDEV_SOURCE}" MAKEDEV_THREE_ARGS)
#SET (MAKEDEV_THREE_ARGS 0)
#SET (NEED_BASENAME 0)