changeset 4108:29cb9e47681f

fix cmake policy CMP0075
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jul 2020 21:10:13 +0200
parents d36b38da5947
children ad528c389d15
files OrthancFramework/Resources/CMake/DownloadOrthancFramework.cmake
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Resources/CMake/DownloadOrthancFramework.cmake	Mon Jul 06 20:57:49 2020 +0200
+++ b/OrthancFramework/Resources/CMake/DownloadOrthancFramework.cmake	Mon Jul 06 21:10:13 2020 +0200
@@ -526,6 +526,9 @@
     message(FATAL_ERROR "Cannot find the Orthanc framework")
   endif()
 
+  unset(CMAKE_REQUIRED_INCLUDES)
+  unset(CMAKE_REQUIRED_LIBRARIES)
+  
   if (NOT "${ORTHANC_FRAMEWORK_ROOT}" STREQUAL "")
     include_directories(${ORTHANC_FRAMEWORK_ROOT})
   endif()