Use modern CMake mechanism to enable c++14

This commit is contained in:
Sam Fuller 2019-02-08 18:29:52 -08:00
parent 87467048df
commit 41969f2d67
1 changed files with 2 additions and 1 deletions

View File

@ -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(