summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-04-29 21:23:56 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-04-29 21:23:56 (GMT)
commitb216ced4445426f1f95af26d5b21b9d8067bfee3 (patch)
treebeaa49ff7f7f401bbadb1adbc3ff1c97640425a1 /Source/CMakeLists.txt
parent565200b893c8d41f25815618afcb1dd0dfdb1934 (diff)
downloadCMake-b216ced4445426f1f95af26d5b21b9d8067bfee3.zip
CMake-b216ced4445426f1f95af26d5b21b9d8067bfee3.tar.gz
CMake-b216ced4445426f1f95af26d5b21b9d8067bfee3.tar.bz2
ENH: Make Curl code to be built by default
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 423be68..4581e62 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -112,9 +112,8 @@ ENDIF (UNIX)
TARGET_LINK_LIBRARIES(cmake CMakeLib)
TARGET_LINK_LIBRARIES(DumpDocumentation CMakeLib)
-OPTION(CMAKE_WITH_CURL "Build CMake with Curl support" OFF)
-MARK_AS_ADVANCED(CMAKE_WITH_CURL)
-IF(CMAKE_WITH_CURL)
+SET(CMAKE_BUILD_WITH_CURL 1)
+IF(CMAKE_BUILD_WITH_CURL)
SUBDIRS(CTest)
SET(CMTEST_SRCS ${CMTEST_SRCS} CTest/cmCTestSubmit.cxx)
ADD_DEFINITIONS(-DHAVE_CURL)
@@ -122,13 +121,13 @@ IF(CMAKE_WITH_CURL)
${CMAKE_SOURCE_DIR}/Source/CTest/Curl
${CMAKE_SOURCE_DIR}/Source/CTest
)
-ENDIF(CMAKE_WITH_CURL)
+ENDIF(CMAKE_BUILD_WITH_CURL)
ADD_EXECUTABLE(cmtest ${CMTEST_SRCS})
TARGET_LINK_LIBRARIES(cmtest CMakeLib)
-IF(CMAKE_WITH_CURL)
+IF(CMAKE_BUILD_WITH_CURL)
TARGET_LINK_LIBRARIES(cmtest Curl)
-ENDIF(CMAKE_WITH_CURL)
+ENDIF(CMAKE_BUILD_WITH_CURL)
IF (UNIX)
INCLUDE (${CMake_SOURCE_DIR}/Modules/FindCurses.cmake OPTIONAL)