# HG changeset patch # User Sebastien Jodogne # Date 1598533193 -7200 # Node ID 8517c47eedd2e8b1e7f61401efc60702c6db3741 # Parent ad64038bcbc530b42880836a5df85f9e86f5bc1e# Parent e34c89e89aacc974e25955da259e10ec1f994fae merge diff -r e34c89e89aac -r 8517c47eedd2 OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake --- a/OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake Tue Aug 25 17:05:13 2020 +0200 +++ b/OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake Thu Aug 27 14:59:53 2020 +0200 @@ -169,6 +169,16 @@ 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()