From 4819ff964714faec8ad2d92a3ee541b19196bcfc Mon Sep 17 00:00:00 2001 From: Zsolt Parragi Date: Thu, 21 Mar 2019 19:49:11 +0100 Subject: Tests: fix failures with gnu mode clang on windows Root causes were: * Using incorrect conditions (assuming MSVC-like command line mode) * Trying to compile the MSVC STL in C++11 mode, when parts of it require C++14 or enabling MS extensions in clang. * Missing flush in a testcase using stdout in a dll and a main part with static crt --- Tests/Complex/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Tests/Complex') diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt index 2e41754425..fef83f668a 100644 --- a/Tests/Complex/CMakeLists.txt +++ b/Tests/Complex/CMakeLists.txt @@ -446,6 +446,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND set(CMAKE_CXX_STANDARD 11) endif() +if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND + CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "GNU") + set(CMAKE_CXX_STANDARD 14) +endif() + # # Create the libs and the main exe # -- cgit v1.2.1