File: cmake

package info (click to toggle)
orthanc-python 6.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,204 kB
  • sloc: cpp: 8,299; python: 786; sh: 62; makefile: 33
file content (26 lines) | stat: -rw-r--r-- 900 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Fix FTBFS with recent versions of CMake
Author: Sebastien Jodogne <s.jodogne@orthanc-labs.com>
Forwarded: https://orthanc.uclouvain.be/hg/orthanc-python/rev/d534902ed9a2
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: OrthancPython-6.0/CMakeLists.txt
===================================================================
--- OrthancPython-6.0.orig/CMakeLists.txt
+++ OrthancPython-6.0/CMakeLists.txt
@@ -22,7 +22,7 @@
 ##
 
 
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 2.8...4.0)
 project(OrthancPython)
 
 set(PLUGIN_VERSION "6.0")
@@ -86,7 +86,6 @@ set(ORTHANC_SDK_PATH "" CACHE STRING "Pa
 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
 
 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
-  include(FindBoost)
   find_package(Boost COMPONENTS filesystem regex thread)
 
   if (NOT Boost_FOUND)