Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ned14/ntkernel-error-category.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2017-07-27 03:12:16 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2017-07-27 03:12:16 +0300
commitc2f3d3de3f333c67c1bbacde4319a63c1d193dad (patch)
treeebb04a763f0e309fdf5c5e7ab9a666dbd8725dfd
parentf0df7ae4d73d098b8e0bf9cf9ec044bfe545b347 (diff)
Fix failure to require C++ 11 on non-MSVC compilers.
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a13ed61..bfdc9dd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,6 +19,7 @@ if(WIN32)
endif()
add_library(ntkernel-error-category_dl SHARED "src/ntkernel_category.cpp")
+target_compile_features(ntkernel-error-category_dl PUBLIC cxx_std_11)
target_include_directories(ntkernel-error-category_dl INTERFACE "include")
set_target_properties(ntkernel-error-category_dl PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
@@ -28,6 +29,7 @@ set_target_properties(ntkernel-error-category_dl PROPERTIES
add_library(ntkernel-error-category::dl ALIAS ntkernel-error-category_dl)
add_library(ntkernel-error-category_sl STATIC "src/ntkernel_category.cpp")
+target_compile_features(ntkernel-error-category_sl PUBLIC cxx_std_11)
target_include_directories(ntkernel-error-category_sl INTERFACE "include")
target_compile_definitions(ntkernel-error-category_sl PRIVATE NTKERNEL_ERROR_CATEGORY_STATIC)
set_target_properties(ntkernel-error-category_sl PROPERTIES
@@ -38,6 +40,7 @@ set_target_properties(ntkernel-error-category_sl PROPERTIES
add_library(ntkernel-error-category::sl ALIAS ntkernel-error-category_sl)
add_library(ntkernel-error-category_hl INTERFACE)
+target_compile_features(ntkernel-error-category_hl INTERFACE cxx_std_11)
target_include_directories(ntkernel-error-category_hl INTERFACE "include")
target_compile_definitions(ntkernel-error-category_hl INTERFACE
NTKERNEL_ERROR_CATEGORY_INLINE