use target_compile_features()

This commit is contained in:
Corentin Le Molgat
2018-01-23 11:40:44 +01:00
parent 00a3fc39e5
commit 4a73379bf2

View File

@@ -64,6 +64,7 @@ if(BUILD_SHARED_LIBS)
else()
add_library(${PROJECT_NAME} STATIC "")
endif()
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_11)
if(NOT APPLE)
set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION})
else()