changeset 1529:4c1dbfddabd4

fix windows build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Aug 2015 14:25:17 +0200
parents 4d0e669ade83
children 766a42aac55d
files Resources/CMake/LibCurlConfiguration.cmake
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/LibCurlConfiguration.cmake	Wed Aug 12 13:03:50 2015 +0200
+++ b/Resources/CMake/LibCurlConfiguration.cmake	Wed Aug 12 14:25:17 2015 +0200
@@ -7,6 +7,7 @@
 
   include_directories(
     ${CURL_SOURCES_DIR}/include
+    ${CURL_SOURCES_DIR}/lib
     )
 
   AUX_SOURCE_DIRECTORY(${CURL_SOURCES_DIR}/lib CURL_SOURCES)
@@ -56,12 +57,6 @@
       PROPERTY COMPILE_DEFINITIONS "HAVE_TIME_H;HAVE_STRUCT_TIMEVAL;HAVE_SYS_STAT_H;HAVE_SOCKET;HAVE_STRUCT_SOCKADDR_STORAGE;HAVE_SYS_SOCKET_H;HAVE_SOCKET;HAVE_SYS_SOCKET_H;HAVE_NETINET_IN_H;HAVE_NETDB_H;HAVE_FCNTL_O_NONBLOCK;HAVE_FCNTL_H;HAVE_SELECT;HAVE_ERRNO_H;HAVE_SEND;HAVE_RECV;HAVE_LONGLONG;OS=\"${TMP_OS}\""
       )
 
-    if (MSVC)
-      set_property(SOURCE ${CURL_SOURCES} PROPERTY COMPILE_FLAGS "/I${CURL_SOURCES_DIR}/lib")
-    else()
-      set_property(SOURCE ${CURL_SOURCES} PROPERTY COMPILE_FLAGS "-I${CURL_SOURCES_DIR}/lib")
-    endif()
-
     if ("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
       add_definitions(
         -DRECV_TYPE_ARG1=int