comparison ui/CMakeLists.txt @ 954:eaea1504f282

(issue41) Add curl staticlib definition This is neccessary to avoid dllimport declarations on windows.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 27 Aug 2014 16:29:55 +0200
parents 0abacb0fd564
children 0f7aeb12e5e9
comparison
equal deleted inserted replaced
953:f2066a24047d 954:eaea1504f282
26 ${CMAKE_CURRENT_SOURCE_DIR}/sslhelp.cpp 26 ${CMAKE_CURRENT_SOURCE_DIR}/sslhelp.cpp
27 ) 27 )
28 28
29 if (${CURL_FOUND} AND ${USE_CURL}) 29 if (${CURL_FOUND} AND ${USE_CURL})
30 set(UICOMMON_SOURCES ${UICOMMON_SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/sslconnection_curl.cpp) 30 set(UICOMMON_SOURCES ${UICOMMON_SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/sslconnection_curl.cpp)
31 add_definitions(-DUSE_CURL) 31 add_definitions(-DUSE_CURL -DCURL_STATICLIB)
32 elseif (${USE_CURL}) 32 elseif (${USE_CURL})
33 MESSAGE(FATAL_ERROR "libcurl not found but usage of curl is requested.") 33 MESSAGE(FATAL_ERROR "libcurl not found but usage of curl is requested.")
34 endif() 34 endif()
35 35
36 # Cmake does not correctly identify gcc windres when cross compiling 36 # Cmake does not correctly identify gcc windres when cross compiling

http://wald.intevation.org/projects/trustbridge/