comparison OrthancFramework/Resources/CMake/DownloadOrthancFramework.cmake @ 4108:29cb9e47681f

fix cmake policy CMP0075
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jul 2020 21:10:13 +0200
parents c02a2d9efbc2
children bf7b9edf6b81
comparison
equal deleted inserted replaced
4107:d36b38da5947 4108:29cb9e47681f
524 check_cxx_symbol_exists("Orthanc::InitializeFramework" "OrthancFramework.h" HAVE_ORTHANC_FRAMEWORK) 524 check_cxx_symbol_exists("Orthanc::InitializeFramework" "OrthancFramework.h" HAVE_ORTHANC_FRAMEWORK)
525 if (NOT HAVE_ORTHANC_FRAMEWORK) 525 if (NOT HAVE_ORTHANC_FRAMEWORK)
526 message(FATAL_ERROR "Cannot find the Orthanc framework") 526 message(FATAL_ERROR "Cannot find the Orthanc framework")
527 endif() 527 endif()
528 528
529 unset(CMAKE_REQUIRED_INCLUDES)
530 unset(CMAKE_REQUIRED_LIBRARIES)
531
529 if (NOT "${ORTHANC_FRAMEWORK_ROOT}" STREQUAL "") 532 if (NOT "${ORTHANC_FRAMEWORK_ROOT}" STREQUAL "")
530 include_directories(${ORTHANC_FRAMEWORK_ROOT}) 533 include_directories(${ORTHANC_FRAMEWORK_ROOT})
531 endif() 534 endif()
532 endif() 535 endif()