Commit a687b5a9 authored by Shervin Nourbakhsh's avatar Shervin Nourbakhsh
Browse files

target compile features c++17

parent 83244bce
...@@ -18,13 +18,6 @@ if(NOT DEFINED BUILD_SHARED_LIBS) ...@@ -18,13 +18,6 @@ if(NOT DEFINED BUILD_SHARED_LIBS)
#set(BUILD_SHARED_LIBS True) #set(BUILD_SHARED_LIBS True)
endif() endif()
if(NOT DEFINED CMAKE_CXX_STANDARD)
# specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
endif()
# fix the RPATH for the linker # fix the RPATH for the linker
#if(not APPLE) #if(not APPLE)
# set(CMAKE_INSTALL_RPATH $ORIGIN) # set(CMAKE_INSTALL_RPATH $ORIGIN)
...@@ -70,7 +63,7 @@ target_include_directories(cameo ...@@ -70,7 +63,7 @@ target_include_directories(cameo
SYSTEM PRIVATE ${Rapidjson_INCLUDE_DIRS}/ SYSTEM PRIVATE ${Rapidjson_INCLUDE_DIRS}/
) )
#target_include_directories(cameo PRIVATE ${DOCTEST_INCLUDE_DIR}) #target_include_directories(cameo PRIVATE ${DOCTEST_INCLUDE_DIR})
#target_compile_features(cameo PUBLIC cxx_std_11) target_compile_features(cameo PUBLIC cxx_std_17)
set_target_properties(cameo PROPERTIES set_target_properties(cameo PROPERTIES
SOVERSION ${PROJECT_VERSION_MAJOR} SOVERSION ${PROJECT_VERSION_MAJOR}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment