Skip to content

Commit

Permalink
Update to C++ 14 standard and increase cmake version
Browse files Browse the repository at this point in the history
  • Loading branch information
feliwir committed Jul 23, 2018
1 parent 310b93f commit 72280e6
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
### ---[ PCL global CMake
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)

if(POLICY CMP0017)
# Do not include files in CMAKE_MODULE_PATH from files
# in CMake module directory. Fix MXE build
cmake_policy(SET CMP0017 NEW)
endif()

if(POLICY CMP0020 AND (WIN32 AND NOT MINGW))
cmake_policy(SET CMP0020 NEW) # Automatically link Qt executables to qtmain target on Windows
endif()

if(POLICY CMP0048)
cmake_policy(SET CMP0048 OLD) # do not use VERSION option in project() command
endif()

if(POLICY CMP0054)
cmake_policy(SET CMP0054 OLD) # Silent warnings about quoted variables
endif()
set(CMAKE_CXX_STANDARD 14)

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

Expand Down

0 comments on commit 72280e6

Please sign in to comment.