Skip to content

Commit 72280e6

Browse files
committed
Update to C++ 14 standard and increase cmake version
1 parent 310b93f commit 72280e6

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

CMakeLists.txt

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
### ---[ PCL global CMake
2-
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
2+
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
33

4-
if(POLICY CMP0017)
5-
# Do not include files in CMAKE_MODULE_PATH from files
6-
# in CMake module directory. Fix MXE build
7-
cmake_policy(SET CMP0017 NEW)
8-
endif()
9-
10-
if(POLICY CMP0020 AND (WIN32 AND NOT MINGW))
11-
cmake_policy(SET CMP0020 NEW) # Automatically link Qt executables to qtmain target on Windows
12-
endif()
13-
14-
if(POLICY CMP0048)
15-
cmake_policy(SET CMP0048 OLD) # do not use VERSION option in project() command
16-
endif()
17-
18-
if(POLICY CMP0054)
19-
cmake_policy(SET CMP0054 OLD) # Silent warnings about quoted variables
20-
endif()
4+
set(CMAKE_CXX_STANDARD 14)
215

226
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "possible configurations" FORCE)
237

0 commit comments

Comments
 (0)