summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2019-06-24 13:18:31 +0200
committerRolf Eike Beer <eike@sf-mail.de>2019-06-25 15:14:02 +0200
commit736f38ff3434e168a5548d3d2a0897934fa5de9a (patch)
tree1a7f41784c409df194051be094e8b0fdeb985c57
parent154d25f5bac70e0537578eee75e0d898446c14cc (diff)
downloadcmake-736f38ff3434e168a5548d3d2a0897934fa5de9a.tar.gz
FindIconv test: request C++11
-rw-r--r--Tests/FindIconv/Test/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/FindIconv/Test/CMakeLists.txt b/Tests/FindIconv/Test/CMakeLists.txt
index c59adb3d15..a6243f53f6 100644
--- a/Tests/FindIconv/Test/CMakeLists.txt
+++ b/Tests/FindIconv/Test/CMakeLists.txt
@@ -6,9 +6,11 @@ find_package(Iconv REQUIRED)
add_executable(test_iconv_tgt main.cxx)
target_link_libraries(test_iconv_tgt Iconv::Iconv)
+target_compile_features(test_iconv_tgt PRIVATE cxx_std_11)
add_test(NAME test_iconv_tgt COMMAND test_iconv_tgt)
add_executable(test_iconv_var main.cxx)
target_include_directories(test_iconv_var PRIVATE ${Iconv_INCLUDE_DIRS})
target_link_libraries(test_iconv_var PRIVATE ${Iconv_LIBRARIES})
+target_compile_features(test_iconv_var PRIVATE cxx_std_11)
add_test(NAME test_iconv_var COMMAND test_iconv_var)