Detect C++14 compiler support

This commit is contained in:
Victor Zverovich
2017-09-28 08:57:54 -07:00
parent be5b4552d9
commit d5e918b61f
7 changed files with 36 additions and 36 deletions
+2 -2
View File
@@ -5,11 +5,11 @@ project(fmt-test)
find_package(FMT REQUIRED)
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 ()