Added testing for c++17 to latest compilers with test with (#692)

* Added testing with std=c++17 for latest compilers

Added running latest compilers with -std=c++17 option to CI the test matrix,
Updated cmake configuration to allow passing c++ standard on the command line.

* attempt to fix appveyor break

* added clang6.0, removed c++17 tests for clang 5.0

* commented out tests for clang with c++17 die to issue #695

* Addresed comments
This commit is contained in:
Anna Gringauze authored and GitHub committed 2018-06-15 10:13:11 -07:00
1 parent a9ef39f14a
commit 21cb6bb8b0
4 files changed
+86 -41

No files matched your search

+6
View File
@@ -26,6 +26,10 @@ else()
add_custom_target(catch)
endif()
if (MSVC AND (GSL_CXX_STANDARD EQUAL 17))
set(GSL_CPLUSPLUS_OPT -Zc:__cplusplus)
endif()
# this interface adds compile options to how the tests are run
# please try to keep entries ordered =)
add_library(gsl_tests_config INTERFACE)
@@ -35,6 +39,7 @@ target_compile_options(gsl_tests_config INTERFACE
/W4
/WX
>
${GSL_CPLUSPLUS_OPT}
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:
-fno-strict-aliasing
-Wall
@@ -122,6 +127,7 @@ target_compile_options(gsl_tests_config_noexcept INTERFACE
/W4
/WX
>
${GSL_CPLUSPLUS_OPT}
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:
-fno-strict-aliasing
-fno-exceptions