changeset 2093:9e0712846be6

merge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Oct 2016 16:29:22 +0200
parents 50dd3249732e (diff) a51014b3251c (current diff)
children 72a7624215ae
files
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/LibCurlConfiguration.cmake	Fri Sep 23 11:10:31 2016 +0200
+++ b/Resources/CMake/LibCurlConfiguration.cmake	Wed Oct 05 16:29:22 2016 +0200
@@ -40,13 +40,15 @@
       )
   endif()
 
-  file(WRITE ${CURL_SOURCES_DIR}/lib/curl_config.h "")
+  if (NOT EXISTS "${CURL_SOURCES_DIR}/lib/curl_config.h")
+    file(WRITE ${CURL_SOURCES_DIR}/lib/curl_config.h "")
 
-  file(GLOB CURL_LIBS_HEADERS ${CURL_SOURCES_DIR}/lib/*.h)
-  foreach (header IN LISTS CURL_LIBS_HEADERS)
-    get_filename_component(filename ${header} NAME)
-    file(WRITE ${CURL_SOURCES_DIR}/lib/vtls/${filename} "#include \"../${filename}\"\n")
-  endforeach()
+    file(GLOB CURL_LIBS_HEADERS ${CURL_SOURCES_DIR}/lib/*.h)
+    foreach (header IN LISTS CURL_LIBS_HEADERS)
+      get_filename_component(filename ${header} NAME)
+      file(WRITE ${CURL_SOURCES_DIR}/lib/vtls/${filename} "#include \"../${filename}\"\n")
+    endforeach()
+  endif()
 
   if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR
       ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR