# HG changeset patch # User Sebastien Jodogne # Date 1438265766 -7200 # Node ID e629649da518d38ad2a8f53bd3014db27d7f4cad # Parent e2345d036e7c5e3ee4f3818a27763a3273693530 fix diff -r e2345d036e7c -r e629649da518 CMakeLists.txt --- a/CMakeLists.txt Thu Jul 30 15:57:34 2015 +0200 +++ b/CMakeLists.txt Thu Jul 30 16:16:06 2015 +0200 @@ -54,9 +54,6 @@ include(${CMAKE_SOURCE_DIR}/Resources/CMake/GdcmConfiguration.cmake) -# Check that the Orthanc SDK headers are available or download them -set(AUTOGENERATED_DIR ${CMAKE_CURRENT_BINARY_DIR}/AUTOGENERATED) - if (STATIC_BUILD) include_directories(${ORTHANC_ROOT}/Sdk-0.9.1) else () @@ -80,14 +77,14 @@ ${ORTHANC_DICOM_WEB_VERSION} "DICOMweb plugin" OrthancDicomWeb.dll "Plugin to extend Orthanc with the DICOMweb API" ERROR_VARIABLE Failure - OUTPUT_FILE ${AUTOGENERATED_DIR}/Version.rc + OUTPUT_FILE ${CMAKE_CURRENT_BINARY_DIR}/Version.rc ) if (Failure) message(FATAL_ERROR "Error while computing the version information: ${Failure}") endif() - list(APPEND AUTOGENERATED_SOURCES ${AUTOGENERATED_DIR}/Version.rc) + list(APPEND AUTOGENERATED_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/Version.rc) endif() if (CMAKE_COMPILER_IS_GNUCXX)