summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-07 20:09:19 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-07 20:09:19 (GMT)
commit6c65c77d350cab78832b6a2e20fec655a4e39969 (patch)
tree7721b4cafea9e14c7462d2c43ed47e071f7e9a6b /Source/CTest
parent7e54a53a3da92ea2d16e2396bf7cfc801c3d076d (diff)
downloadCMake-6c65c77d350cab78832b6a2e20fec655a4e39969.zip
CMake-6c65c77d350cab78832b6a2e20fec655a4e39969.tar.gz
CMake-6c65c77d350cab78832b6a2e20fec655a4e39969.tar.bz2
ENH: Report an error when ADD_LIBRARY and TARGET_LINK_LIBRARIES are in the wrong order and fix CMakeLists files to actually work
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/CMakeLists.txt b/Source/CTest/CMakeLists.txt
index e262727..6514ff9 100644
--- a/Source/CTest/CMakeLists.txt
+++ b/Source/CTest/CMakeLists.txt
@@ -8,11 +8,11 @@ IF(CMAKE_SYSTEM MATCHES "AIX.*")
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
ENDIF(CMAKE_SYSTEM MATCHES "AIX.*")
-SUBDIRS(Curl)
IF(CMAKE_BUILD_WITH_CURL)
SET(CMAKE_LIBRARY CMakeLib)
ELSE(CMAKE_BUILD_WITH_CURL)
+ SUBDIRS(Curl)
FIND_LIBRARY(CMAKE_LIBRARY NAMES CMakeLib PATHS
${CTEST_BINARY_DIR}/..
${CTEST_BINARY_DIR}/../Source