Merge 0bb5fedc3e into 1698b47b65
This commit is contained in:
commit
2fbe9fe98e
@ -3,14 +3,18 @@ cmake_minimum_required(VERSION 3.5)
|
|||||||
add_sources(parse.cpp)
|
add_sources(parse.cpp)
|
||||||
add_executable(parse parse.cpp)
|
add_executable(parse parse.cpp)
|
||||||
target_link_libraries(parse yaml-cpp)
|
target_link_libraries(parse yaml-cpp)
|
||||||
set_target_properties(parse PROPERTIES COMPILE_FLAGS "-std=c++11")
|
|
||||||
|
|
||||||
add_sources(sandbox.cpp)
|
add_sources(sandbox.cpp)
|
||||||
add_executable(sandbox sandbox.cpp)
|
add_executable(sandbox sandbox.cpp)
|
||||||
target_link_libraries(sandbox yaml-cpp)
|
target_link_libraries(sandbox yaml-cpp)
|
||||||
set_target_properties(sandbox PROPERTIES COMPILE_FLAGS "-std=c++11")
|
|
||||||
|
|
||||||
add_sources(read.cpp)
|
add_sources(read.cpp)
|
||||||
add_executable(read read.cpp)
|
add_executable(read read.cpp)
|
||||||
target_link_libraries(read yaml-cpp)
|
target_link_libraries(read yaml-cpp)
|
||||||
set_target_properties(read PROPERTIES COMPILE_FLAGS "-std=c++11")
|
|
||||||
|
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR
|
||||||
|
CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
|
set_target_properties(parse PROPERTIES COMPILE_FLAGS "-std=c++11")
|
||||||
|
set_target_properties(sandbox PROPERTIES COMPILE_FLAGS "-std=c++11")
|
||||||
|
set_target_properties(read PROPERTIES COMPILE_FLAGS "-std=c++11")
|
||||||
|
endif()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user