diff options
author | Thomas Bernard <tbernard@go-engineering.de> | 2020-08-20 21:43:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-11 13:05:03 (GMT) |
commit | cf83758b24e3f27bcc2a1e4daba9ca58ac22fa9b (patch) | |
tree | 042aebd5995755b67517a61fea34b16e60f86728 /Modules/CMakeDetermineCXXCompiler.cmake | |
parent | 60b10d4fad26c0cd877d06ebcca9f5f583d1275d (diff) | |
download | CMake-cf83758b24e3f27bcc2a1e4daba9ca58ac22fa9b.zip CMake-cf83758b24e3f27bcc2a1e4daba9ca58ac22fa9b.tar.gz CMake-cf83758b24e3f27bcc2a1e4daba9ca58ac22fa9b.tar.bz2 |
Clang: Implement CMAKE_${LANG}_COMPILER_TARGET for all variants on windows
Fixes: #21097
Diffstat (limited to 'Modules/CMakeDetermineCXXCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCXXCompiler.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCXXCompiler.cmake b/Modules/CMakeDetermineCXXCompiler.cmake index 2205c8f..2b27476 100644 --- a/Modules/CMakeDetermineCXXCompiler.cmake +++ b/Modules/CMakeDetermineCXXCompiler.cmake @@ -84,7 +84,7 @@ else() endif() if(CMAKE_CXX_COMPILER_TARGET) - list(PREPEND CMAKE_CXX_COMPILER_ID_TEST_FLAGS "-c --target=${CMAKE_CXX_COMPILER_TARGET}") + set(CMAKE_CXX_COMPILER_ID_TEST_FLAGS_FIRST "-c --target=${CMAKE_CXX_COMPILER_TARGET}") endif() # Build a small source file to identify the compiler. |