comparison Resources/CMake/LibCurlConfiguration.cmake @ 15:2fcf8e5e789c

mini fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 20 Jul 2012 13:35:59 +0200
parents 3a584803783e
children 6ba765ecf3db
comparison
equal deleted inserted replaced
13:7908a4c25a18 15:2fcf8e5e789c
21 endif() 21 endif()
22 22
23 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") 23 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
24 configure_file("${SOURCE_CONFIG}/curl_config.h" "${CURL_SOURCES_DIR}/lib/curl_config.h" COPYONLY) 24 configure_file("${SOURCE_CONFIG}/curl_config.h" "${CURL_SOURCES_DIR}/lib/curl_config.h" COPYONLY)
25 configure_file("${SOURCE_CONFIG}/curlbuild.h" "${CURL_SOURCES_DIR}/include/curl/curlbuild.h" COPYONLY) 25 configure_file("${SOURCE_CONFIG}/curlbuild.h" "${CURL_SOURCES_DIR}/include/curl/curlbuild.h" COPYONLY)
26 set_property(
27 SOURCE ${CURL_SOURCES}
28 PROPERTY COMPILE_DEFINITIONS HAVE_CONFIG_H)
29 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 26 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
30 configure_file("${SOURCE_CONFIG}/curlbuild.h" "${CURL_SOURCES_DIR}/include/curl/curlbuild.h" COPYONLY) 27 configure_file("${SOURCE_CONFIG}/curlbuild.h" "${CURL_SOURCES_DIR}/include/curl/curlbuild.h" COPYONLY)
31 endif() 28 endif()
32 29
33 include_directories(${CURL_SOURCES_DIR}/include) 30 include_directories(${CURL_SOURCES_DIR}/include)
43 -DCURL_DISABLE_LDAPS=1 40 -DCURL_DISABLE_LDAPS=1
44 -DCURL_DISABLE_LDAP=1 41 -DCURL_DISABLE_LDAP=1
45 -D_WIN32_WINNT=0x0501 42 -D_WIN32_WINNT=0x0501
46 ) 43 )
47 44
45 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
46 set_property(
47 SOURCE ${CURL_SOURCES}
48 PROPERTY COMPILE_DEFINITIONS HAVE_CONFIG_H)
49 endif()
50
48 else() 51 else()
49 include(FindCURL) 52 include(FindCURL)
50 include_directories(${CURL_INCLUDE_DIRS}) 53 include_directories(${CURL_INCLUDE_DIRS})
51 link_libraries(${CURL_LIBRARIES}) 54 link_libraries(${CURL_LIBRARIES})
52 55