Mercurial > hg > orthanc
changeset 4040:052dc48c15be
don't generate embedded resources if not needed
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Jun 2020 14:26:18 +0200 |
parents | fa35465175b8 |
children | ffd20cdfa82c |
files | Resources/CMake/OrthancFrameworkConfiguration.cmake |
diffstat | 1 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/OrthancFrameworkConfiguration.cmake Wed Jun 10 14:16:16 2020 +0200 +++ b/Resources/CMake/OrthancFrameworkConfiguration.cmake Wed Jun 10 14:26:18 2020 +0200 @@ -676,13 +676,16 @@ endif() -EmbedResources( - --namespace=Orthanc.FrameworkResources - --target=OrthancFrameworkResources - --framework-path=${ORTHANC_ROOT}/Core - ${LIBICU_RESOURCES} - ${DCMTK_DICTIONARIES} - ) +if (NOT "${LIBICU_RESOURCES}" STREQUAL "" OR + NOT "${DCMTK_DICTIONARIES}" STREQUAL "") + EmbedResources( + --namespace=Orthanc.FrameworkResources + --target=OrthancFrameworkResources + --framework-path=${ORTHANC_ROOT}/Core + ${LIBICU_RESOURCES} + ${DCMTK_DICTIONARIES} + ) +endif() set(ORTHANC_CORE_SOURCES