Mercurial > hg > orthanc
changeset 2092:50dd3249732e
optimization for cmake
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Oct 2016 16:29:00 +0200 |
parents | 7a969f235adf |
children | 9e0712846be6 |
files | Resources/CMake/LibCurlConfiguration.cmake |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/LibCurlConfiguration.cmake Mon Sep 19 17:22:41 2016 +0200 +++ b/Resources/CMake/LibCurlConfiguration.cmake Wed Oct 05 16:29:00 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