- 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 18:57:31 +00:00
parent dfd74604be
commit d677699002
1 changed files with 2 additions and 1 deletions

View File

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