1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00

cmake: do not use gnu extensions to the c++

This will let cmake use -std=c++14 instead of -std=gnu++14
This commit is contained in:
Anonymous Maarten 2018-08-23 13:13:39 +02:00
parent 804276668b
commit ee63911acb

View File

@ -2,6 +2,7 @@ add_library(rw_interface INTERFACE)
add_library(openrw::interface ALIAS rw_interface) add_library(openrw::interface ALIAS rw_interface)
# target_compile_features(rw_interface INTERFACE cxx_std_14) is not supported by CMake 3.2 # target_compile_features(rw_interface INTERFACE cxx_std_14) is not supported by CMake 3.2
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)