Mercurial > hg > orthanc-python
changeset 4:e3128420249d
fixing the SDK version
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Mar 2020 12:22:22 +0100 |
parents | 26762eb9d704 |
children | 5b3dd10cecc3 |
files | CMakeLists.txt |
diffstat | 1 files changed, 3 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Fri Mar 27 11:56:30 2020 +0100 +++ b/CMakeLists.txt Fri Mar 27 12:22:22 2020 +0100 @@ -9,8 +9,6 @@ set(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost") set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") set(USE_LEGACY_JSONCPP OFF CACHE BOOL "Use the old branch 0.x.y of JsonCpp, that does not require a C++11 compiler (for LSB and old versions of Visual Studio)") -set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") - include(CheckIncludeFile) include(CheckIncludeFileCXX) @@ -41,16 +39,9 @@ include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake) include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) -if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) - include_directories( - ${ORTHANC_ROOT}/Sdk-1.5.7 - ) -else() - CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H) - if (NOT HAVE_ORTHANC_H) - message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK") - endif() -endif() +include_directories( + ${ORTHANC_ROOT}/Sdk-1.5.7 + ) add_definitions( -DHAS_ORTHANC_EXCEPTION=0