diff options
author | Brad King <brad.king@kitware.com> | 2023-01-12 20:49:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-01-12 20:58:14 (GMT) |
commit | 88f9fdcb037a67ea32007dfb4dc142d348115c78 (patch) | |
tree | 77c76267a5b83a37934b4b0556d8ecc2b7dfd523 | |
parent | 6b92224f6c8758e5e84b1425273f4abf3b278f54 (diff) | |
download | CMake-88f9fdcb037a67ea32007dfb4dc142d348115c78.zip CMake-88f9fdcb037a67ea32007dfb4dc142d348115c78.tar.gz CMake-88f9fdcb037a67ea32007dfb4dc142d348115c78.tar.bz2 |
IntelLLVM: Avoid unnecessary -Qstd=c++11 flag on Windows
The IntelLLVM compiler, for compatibility with MSVC on Windows, always
runs with support for at least C++14. The `-Qstd=c++11` flag just
causes a warning that it is unused.
Fixes: #24316
-rw-r--r-- | Modules/Compiler/IntelLLVM-CXX.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Compiler/IntelLLVM-CXX.cmake b/Modules/Compiler/IntelLLVM-CXX.cmake index cae1f11..4d3f5a1 100644 --- a/Modules/Compiler/IntelLLVM-CXX.cmake +++ b/Modules/Compiler/IntelLLVM-CXX.cmake @@ -50,8 +50,8 @@ else() set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "") set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION "") - set(CMAKE_CXX11_STANDARD_COMPILE_OPTION "-Qstd=c++11") - set(CMAKE_CXX11_EXTENSION_COMPILE_OPTION "-Qstd=c++11") + set(CMAKE_CXX11_STANDARD_COMPILE_OPTION "") + set(CMAKE_CXX11_EXTENSION_COMPILE_OPTION "") set(CMAKE_CXX14_STANDARD_COMPILE_OPTION "-Qstd=c++14") set(CMAKE_CXX14_EXTENSION_COMPILE_OPTION "-Qstd=c++14") |