Make sure CXX_STANDARD can be overridden from outside (#1239)
This commit is contained in:
parent
145eec5f3e
commit
db03655d58
@ -15,5 +15,7 @@ else()
|
||||
endif()
|
||||
|
||||
add_executable(main main.cpp)
|
||||
if (NOT DEFINED CMAKE_CXX_STANDARD)
|
||||
set_target_properties(main PROPERTIES CXX_STANDARD 11)
|
||||
endif()
|
||||
target_link_libraries(main PRIVATE ${YAML_CPP_LIBRARIES})
|
||||
|
Loading…
Reference in New Issue
Block a user