summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2006-08-02 16:51:40 (GMT)
committerDavid Cole <david.cole@kitware.com>2006-08-02 16:51:40 (GMT)
commit8f0697c4f574e7dfe9d678ab5ccce1b28fd046de (patch)
treecc74fb7898f8f7322e13f3fd0d701809880917b2 /Utilities
parent221b34392bb4cfe8c9e017dcfdc4292159bf4dee (diff)
downloadCMake-8f0697c4f574e7dfe9d678ab5ccce1b28fd046de.zip
CMake-8f0697c4f574e7dfe9d678ab5ccce1b28fd046de.tar.gz
CMake-8f0697c4f574e7dfe9d678ab5ccce1b28fd046de.tar.bz2
COMP: libtar should build when included in non-CMake projects...
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmtar/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Utilities/cmtar/CMakeLists.txt b/Utilities/cmtar/CMakeLists.txt
index 8a892bc..462ac80 100644
--- a/Utilities/cmtar/CMakeLists.txt
+++ b/Utilities/cmtar/CMakeLists.txt
@@ -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)