- added ability to force using dynamic CURL because some retard ditros report they support static when they in fact do not (ahem.. Suse)

This commit is contained in:
Mark Vejvoda 2011-12-02 19:05:42 +00:00
parent d677699002
commit ff14256dc5
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ IF(CURL_FOUND)
IF(CMAKE_CURL_CONFIG)
OPTION(WANT_STATIC_LIBS "builds as many static libs as possible" OFF)
OPTION(FORCE_CURL_DYNAMIC_LIBS "force the use of dynamic libs for CURL" OFF)
MESSAGE(STATUS "Force Curl dynamic: ${FORCE_CURL_DYNAMIC_LIBS}")
IF(WANT_STATIC_LIBS AND NOT FORCE_CURL_DYNAMIC_LIBS)
# run the curl-config program to get --static-libs
EXEC_PROGRAM(sh