Skip to content

Commit 304bb3c

Browse files
authored
Merge branch 'develop' into master (#527)
1 parent b55fa03 commit 304bb3c

28 files changed

+4536
-263
lines changed

CMakeLists.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
########################################################################
44
#
55
# Project-wide settings
6-
CMAKE_MINIMUM_REQUIRED(VERSION 3.1.0)
6+
CMAKE_MINIMUM_REQUIRED(VERSION 3.8.0)
7+
if(POLICY CMP0011)
8+
cmake_policy(SET CMP0011 NEW)
9+
endif()
10+
if(POLICY CMP0074)
11+
cmake_policy(SET CMP0074 NEW)
12+
endif()
713

814
# Name of the project.
915
#
@@ -13,8 +19,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.1.0)
1319
PROJECT(OpenMVS)
1420

1521
set(OpenMVS_MAJOR_VERSION 1)
16-
set(OpenMVS_MINOR_VERSION 0)
17-
set(OpenMVS_PATCH_VERSION 1)
22+
set(OpenMVS_MINOR_VERSION 1)
23+
set(OpenMVS_PATCH_VERSION 0)
1824
set(OpenMVS_VERSION ${OpenMVS_MAJOR_VERSION}.${OpenMVS_MINOR_VERSION}.${OpenMVS_PATCH_VERSION})
1925

2026
# Find dependencies:
@@ -27,7 +33,6 @@ endif()
2733
SET(COTIRE_INTDIR "cotire")
2834

2935
# Define helper functions and macros.
30-
cmake_policy(SET CMP0011 OLD)
3136
INCLUDE(build/Utils.cmake)
3237
if(ENABLE_PRECOMPILED_HEADERS)
3338
INCLUDE(build/Cotire.cmake)
@@ -75,6 +80,9 @@ if(OpenMVS_USE_OPENMP)
7580
endif()
7681

7782
if(OpenMVS_USE_OPENGL)
83+
if(POLICY CMP0072)
84+
cmake_policy(SET CMP0072 NEW)
85+
endif()
7886
FIND_PACKAGE(OpenGL)
7987
if(OPENGL_FOUND)
8088
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})

0 commit comments

Comments
 (0)