Detect C++14 compiler support

This commit is contained in:
Victor Zverovich
2017-09-28 08:46:47 -07:00
parent be5b4552d9
commit d5e918b61f
7 changed files with 36 additions and 36 deletions

View File

@ -5,11 +5,11 @@ project(fmt-test)
add_subdirectory(../.. fmt)
add_executable(library-test "main.cc")
target_compile_options(library-test PUBLIC ${CPP11_FLAG})
target_compile_options(library-test PUBLIC ${CPP14_FLAG})
target_link_libraries(library-test fmt)
if (TARGET fmt-header-only)
add_executable(header-only-test "main.cc")
target_compile_options(header-only-test PUBLIC ${CPP11_FLAG})
target_compile_options(header-only-test PUBLIC ${CPP14_FLAG})
target_link_libraries(header-only-test fmt-header-only)
endif ()