changeset 15:2fcf8e5e789c

mini fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 20 Jul 2012 13:35:59 +0200
parents 7908a4c25a18
children db4d996ea264
files Resources/CMake/LibCurlConfiguration.cmake
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/LibCurlConfiguration.cmake	Fri Jul 20 12:21:41 2012 +0200
+++ b/Resources/CMake/LibCurlConfiguration.cmake	Fri Jul 20 13:35:59 2012 +0200
@@ -23,9 +23,6 @@
   if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
     configure_file("${SOURCE_CONFIG}/curl_config.h" "${CURL_SOURCES_DIR}/lib/curl_config.h" COPYONLY)
     configure_file("${SOURCE_CONFIG}/curlbuild.h" "${CURL_SOURCES_DIR}/include/curl/curlbuild.h" COPYONLY)
-    set_property(
-      SOURCE ${CURL_SOURCES}
-      PROPERTY COMPILE_DEFINITIONS HAVE_CONFIG_H)
   elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
     configure_file("${SOURCE_CONFIG}/curlbuild.h" "${CURL_SOURCES_DIR}/include/curl/curlbuild.h" COPYONLY)
   endif()
@@ -45,6 +42,12 @@
     -D_WIN32_WINNT=0x0501
     )
 
+  if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+    set_property(
+      SOURCE ${CURL_SOURCES}
+      PROPERTY COMPILE_DEFINITIONS HAVE_CONFIG_H)
+  endif()
+
 else()
   include(FindCURL)
   include_directories(${CURL_INCLUDE_DIRS})