summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-01-19 14:30:09 (GMT)
committerBrad King <brad.king@kitware.com>2004-01-19 14:30:09 (GMT)
commit5ba4fd9e8ac5745f9b8cdded4a83902d5348e744 (patch)
tree6ae2c59fdb35771aa7a583a2a44c02c1db15a6ad /Source/kwsys
parentf2714ab435c1b09a72a5e4d835cf465d23b18691 (diff)
downloadCMake-5ba4fd9e8ac5745f9b8cdded4a83902d5348e744.zip
CMake-5ba4fd9e8ac5745f9b8cdded4a83902d5348e744.tar.gz
CMake-5ba4fd9e8ac5745f9b8cdded4a83902d5348e744.tar.bz2
ERR: Must include Dart module after PROJECT command.
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/CMakeLists.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 1a2b4b3..fe86f6c 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -77,18 +77,20 @@ IF(NOT KWSYS_NAMESPACE)
SET(KWSYS_USE_Process 1)
SET(KWSYS_USE_RegularExpression 1)
SET(KWSYS_USE_SystemTools 1)
+ENDIF(NOT KWSYS_NAMESPACE)
+
+#-----------------------------------------------------------------------------
+# The project name is that of the specified namespace.
+PROJECT(${KWSYS_NAMESPACE})
- # Enable testing.
+# Enable testing if building standalone.
+IF(KWSYS_STANDALONE)
INCLUDE(${CMAKE_ROOT}/Modules/Dart.cmake)
MARK_AS_ADVANCED(BUILD_TESTING DART_ROOT TCL_TCLSH)
IF(BUILD_TESTING)
ENABLE_TESTING()
ENDIF(BUILD_TESTING)
-ENDIF(NOT KWSYS_NAMESPACE)
-
-#-----------------------------------------------------------------------------
-# The project name is that of the specified namespace.
-PROJECT(${KWSYS_NAMESPACE})
+ENDIF(KWSYS_STANDALONE)
# Do full dependency headers.
INCLUDE_REGULAR_EXPRESSION("^.*$")