changeset 45:53efee735396

improved CMakeLists.txt
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Jun 2021 09:03:43 +0200
parents 3415f3d73f65
children a45844994a67
files CMakeLists.txt
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Sat Jun 12 09:29:24 2021 +0200
+++ b/CMakeLists.txt	Wed Jun 23 09:03:43 2021 +0200
@@ -37,8 +37,6 @@
 # Download and setup the Orthanc framework
 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
 
-include_directories(${ORTHANC_FRAMEWORK_ROOT})
-
 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
   if (ORTHANC_FRAMEWORK_USE_SHARED)
     include(FindBoost)
@@ -70,6 +68,7 @@
   set(ENABLE_OPENSSL_ENGINES ON)  # Necessary on Windows
   
   include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkConfiguration.cmake)
+  include_directories(${ORTHANC_FRAMEWORK_ROOT})
 endif()