# HG changeset patch # User Sebastien Jodogne # Date 1598975381 -7200 # Node ID 1657c8700974a5aec6a98122558a6645b65ecf7c # Parent e8005a58de166e8ee66951faf7cd4b911b536b0e better fix for CMP0058 diff -r e8005a58de16 -r 1657c8700974 OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake --- a/OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake Tue Sep 01 14:22:15 2020 +0200 +++ b/OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake Tue Sep 01 17:49:41 2020 +0200 @@ -169,16 +169,6 @@ DICTIONARY_PRIVATE ${DCMTK_SOURCES_DIR}/dcmdata/data/private.dic DICTIONARY_DICONDE ${DCMTK_SOURCES_DIR}/dcmdata/data/diconde.dic ) - - # Fix CMake Policy CMP0058 (related to ninja) by creating a phony - # target for files coming from downloaded packages - add_custom_command( - OUTPUT - ${DCMTK_SOURCES_DIR}/dcmdata/data/dicom.dic - ${DCMTK_SOURCES_DIR}/dcmdata/data/private.dic - ${DCMTK_SOURCES_DIR}/dcmdata/data/diconde.dic - COMMAND ${CMAKE_COMMAND} -E echo_append "" - ) else() set(DCMTK_USE_EMBEDDED_DICTIONARIES 0) endif() diff -r e8005a58de16 -r 1657c8700974 OrthancFramework/SharedLibrary/CMakeLists.txt --- a/OrthancFramework/SharedLibrary/CMakeLists.txt Tue Sep 01 14:22:15 2020 +0200 +++ b/OrthancFramework/SharedLibrary/CMakeLists.txt Tue Sep 01 17:49:41 2020 +0200 @@ -29,6 +29,8 @@ cmake_minimum_required(VERSION 2.8) +cmake_policy(SET CMP0058 NEW) + project(OrthancFramework) diff -r e8005a58de16 -r 1657c8700974 OrthancServer/CMakeLists.txt --- a/OrthancServer/CMakeLists.txt Tue Sep 01 14:22:15 2020 +0200 +++ b/OrthancServer/CMakeLists.txt Tue Sep 01 17:49:41 2020 +0200 @@ -30,6 +30,7 @@ cmake_minimum_required(VERSION 2.8) +cmake_policy(SET CMP0058 NEW) project(Orthanc)