changeset 286:eb03551d3a5f

improved CMakeLists.txt
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Jun 2021 09:01:37 +0200
parents f2e160b2dc3e
children 772fa76cddf8
files Resources/CMake/DatabasesFrameworkConfiguration.cmake
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/DatabasesFrameworkConfiguration.cmake	Tue Jun 22 07:47:35 2021 +0200
+++ b/Resources/CMake/DatabasesFrameworkConfiguration.cmake	Wed Jun 23 09:01:37 2021 +0200
@@ -52,8 +52,6 @@
 ## Configure the Orthanc Framework
 #####################################################################
 
-include_directories(${ORTHANC_FRAMEWORK_ROOT})
-
 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
   if (ORTHANC_FRAMEWORK_USE_SHARED)
     include(FindBoost)
@@ -85,6 +83,7 @@
   set(ENABLE_MODULE_DICOM OFF)
   
   include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkConfiguration.cmake)
+  include_directories(${ORTHANC_FRAMEWORK_ROOT})
 endif()