summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-03-01 19:21:45 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-03-01 19:21:45 (GMT)
commitce403305e170800a94c0f193ac3b463da5b21a9d (patch)
tree9ae60707f22776f2a2f40f115643d1b593638f1e
parent2a8adb53ea2ac15873a750e18198df3c14071f6e (diff)
downloadCMake-ce403305e170800a94c0f193ac3b463da5b21a9d.zip
CMake-ce403305e170800a94c0f193ac3b463da5b21a9d.tar.gz
CMake-ce403305e170800a94c0f193ac3b463da5b21a9d.tar.bz2
COMP: CMake should be build static. Also propagate build_shared_libs to curl
-rw-r--r--CMakeLists.txt2
-rw-r--r--Source/CTest/Curl/CMakeLists.txt2
2 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c75cc6a..cc6e7eb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,8 @@ SET(CMake_VERSION_PATCH 0)
SET(CMake_VERSION "${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
SET(CMake_VERSION_FULL "${CMake_VERSION}.${CMake_VERSION_PATCH}")
+SET(BUILD_SHARED_LIBS OFF)
+
SET(CMAKE_DATA_DIR "/share/CMake" CACHE STRING
"Install location for data (relative to prefix).")
SET(CMAKE_DOC_DIR "/doc/CMake" CACHE STRING
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt
index f23be4b..1188f75 100644
--- a/Source/CTest/Curl/CMakeLists.txt
+++ b/Source/CTest/Curl/CMakeLists.txt
@@ -559,7 +559,7 @@ ADD_DEFINITIONS(-DHAVE_CONFIG_H)
CONFIGURE_FILE(${LIBCURL_SOURCE_DIR}/config.h.in
${LIBCURL_BINARY_DIR}/config.h)
-ADD_LIBRARY(Curl STATIC ${libCurl_SRCS})
+ADD_LIBRARY(Curl ${libCurl_SRCS})
TARGET_LINK_LIBRARIES(Curl ${CURL_LIBS})