Disable extensions and force standard

pull/1890/head
peter 6 years ago
parent f6dadcf1f1
commit 478a518590
No known key found for this signature in database
GPG Key ID: BB362E868E2CD2B9
  1. 2
      CMakeLists.txt

@ -4,6 +4,8 @@ if (CMAKE_VERSION VERSION_LESS "3.1")
add_definitions(-std=c++11)
else()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()
if (POLICY CMP0048)

Loading…
Cancel
Save