Mercurial > trustbridge
comparison ui/CMakeLists.txt @ 923:68db3a46ae36
Do not error out when curl is not used.
This was only for testing the build system checks
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 21 Aug 2014 15:00:49 +0200 |
parents | eaed02defe6a |
children | 3baee3445502 |
comparison
equal
deleted
inserted
replaced
922:180daa3ecbec | 923:68db3a46ae36 |
---|---|
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) |
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 else() | |
35 MESSAGE(FATAL_ERROR "${CURL_FOUND} ${USE_CURL}") | |
36 endif() | 34 endif() |
37 | 35 |
38 # Cmake does not correctly identify gcc windres when cross compiling | 36 # Cmake does not correctly identify gcc windres when cross compiling |
39 # making this line neccessary to set the correct flags for it. | 37 # making this line neccessary to set the correct flags for it. |
40 # See: http://public.kitware.com/Bug/view.php?id=11773 | 38 # See: http://public.kitware.com/Bug/view.php?id=11773 |