COMP: CMake should be build static. Also propagate build_shared_libs to curl
This commit is contained in:
parent
2a8adb53ea
commit
ce403305e1
|
@ -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
|
||||
|
|
|
@ -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})
|
||||
|
||||
|
|
Loading…
Reference in New Issue