COMP: CMake should be build static. Also propagate build_shared_libs to curl

This commit is contained in:
Andy Cedilnik 2005-03-01 14:21:45 -05:00
parent 2a8adb53ea
commit ce403305e1
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,8 @@ SET(CMake_VERSION_PATCH 0)
SET(CMake_VERSION "${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}") SET(CMake_VERSION "${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
SET(CMake_VERSION_FULL "${CMake_VERSION}.${CMake_VERSION_PATCH}") SET(CMake_VERSION_FULL "${CMake_VERSION}.${CMake_VERSION_PATCH}")
SET(BUILD_SHARED_LIBS OFF)
SET(CMAKE_DATA_DIR "/share/CMake" CACHE STRING SET(CMAKE_DATA_DIR "/share/CMake" CACHE STRING
"Install location for data (relative to prefix).") "Install location for data (relative to prefix).")
SET(CMAKE_DOC_DIR "/doc/CMake" CACHE STRING SET(CMAKE_DOC_DIR "/doc/CMake" CACHE STRING

View File

@ -559,7 +559,7 @@ ADD_DEFINITIONS(-DHAVE_CONFIG_H)
CONFIGURE_FILE(${LIBCURL_SOURCE_DIR}/config.h.in CONFIGURE_FILE(${LIBCURL_SOURCE_DIR}/config.h.in
${LIBCURL_BINARY_DIR}/config.h) ${LIBCURL_BINARY_DIR}/config.h)
ADD_LIBRARY(Curl STATIC ${libCurl_SRCS}) ADD_LIBRARY(Curl ${libCurl_SRCS})
TARGET_LINK_LIBRARIES(Curl ${CURL_LIBS}) TARGET_LINK_LIBRARIES(Curl ${CURL_LIBS})