Unverified Commit db03655d authored by Gianfranco Costamagna's avatar Gianfranco Costamagna Committed by GitHub
Browse files

Make sure CXX_STANDARD can be overridden from outside (#1239)

parent 145eec5f
......@@ -15,5 +15,7 @@ else()
endif()
add_executable(main main.cpp)
set_target_properties(main PROPERTIES CXX_STANDARD 11)
if (NOT DEFINED CMAKE_CXX_STANDARD)
set_target_properties(main PROPERTIES CXX_STANDARD 11)
endif()
target_link_libraries(main PRIVATE ${YAML_CPP_LIBRARIES})
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