From 41969f2d67f9118acf27080583f48bb9f386c5bd Mon Sep 17 00:00:00 2001 From: Sam Fuller Date: Fri, 8 Feb 2019 18:29:52 -0800 Subject: [PATCH] Use modern CMake mechanism to enable c++14 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a18637..9e17f77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,8 @@ add_library(lzokay lzokay.hpp lzokay.cpp) set(LZOKAY_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "lzokay include path" FORCE) add_executable(lzokaytest test.cpp) target_link_libraries(lzokaytest lzokay) -set_target_properties(lzokay lzokaytest PROPERTIES CXX_STANDARD 14 CXX_STANDARD_REQUIRED ON) +target_compile_features(lzokay PRIVATE cxx_std_14) +target_compile_features(lzokaytest PRIVATE cxx_std_14) # Set installation for headers install(