Mercurial > hg > orthanc
comparison Resources/CMake/LibCurlConfiguration.cmake @ 2:67a6978503b7
fixing Windows build
author | Jodogne@Laptop |
---|---|
date | Thu, 19 Jul 2012 22:33:27 +0200 |
parents | 3959d33612cc |
children | 3a584803783e |
comparison
equal
deleted
inserted
replaced
0:3959d33612cc | 2:67a6978503b7 |
---|---|
9 SET(SOURCE_CONFIG ${CMAKE_SOURCE_DIR}/Resources/libcurl/i686-pc-linux-gnu) | 9 SET(SOURCE_CONFIG ${CMAKE_SOURCE_DIR}/Resources/libcurl/i686-pc-linux-gnu) |
10 else() | 10 else() |
11 message(FATAL_ERROR "Support your platform here") | 11 message(FATAL_ERROR "Support your platform here") |
12 endif() | 12 endif() |
13 elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | 13 elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
14 SET(SOURCE_CONFIG ${CMAKE_SOURCE_DIR}/Resources/libcurl/i586-mingw32msvc) | 14 if (${MSVC}) |
15 SET(SOURCE_CONFIG ${CMAKE_SOURCE_DIR}/Resources/libcurl/msvc) | |
16 else() | |
17 SET(SOURCE_CONFIG ${CMAKE_SOURCE_DIR}/Resources/libcurl/i586-mingw32msvc) | |
18 endif() | |
15 else() | 19 else() |
16 message(FATAL_ERROR "Support your platform here") | 20 message(FATAL_ERROR "Support your platform here") |
17 endif() | 21 endif() |
18 | 22 |
19 configure_file("${SOURCE_CONFIG}/curl_config.h" "${CURL_SOURCES_DIR}/lib/curl_config.h" COPYONLY) | 23 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
20 configure_file("${SOURCE_CONFIG}/curlbuild.h" "${CURL_SOURCES_DIR}/include/curl/curlbuild.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) | |
26 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | |
27 configure_file("${SOURCE_CONFIG}/curlbuild.h" "${CURL_SOURCES_DIR}/include/curl/curlbuild.h" COPYONLY) | |
28 endif() | |
21 | 29 |
22 include_directories(${CURL_SOURCES_DIR}/include) | 30 include_directories(${CURL_SOURCES_DIR}/include) |
23 | 31 |
24 AUX_SOURCE_DIRECTORY(${CURL_SOURCES_DIR}/lib CURL_SOURCES) | 32 AUX_SOURCE_DIRECTORY(${CURL_SOURCES_DIR}/lib CURL_SOURCES) |
25 | 33 |