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/CMakeDetermineCCompiler.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/CMakeDetermineCCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCCompiler.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake index 96f32e5..2f1b0a3 100644 --- a/Modules/CMakeDetermineCCompiler.cmake +++ b/Modules/CMakeDetermineCCompiler.cmake @@ -88,7 +88,7 @@ else() ) endif() if(CMAKE_C_COMPILER_TARGET) - list(PREPEND CMAKE_C_COMPILER_ID_TEST_FLAGS "-c --target=${CMAKE_C_COMPILER_TARGET}") + set(CMAKE_C_COMPILER_ID_TEST_FLAGS_FIRST "-c --target=${CMAKE_C_COMPILER_TARGET}") endif() # Build a small source file to identify the compiler. if(NOT CMAKE_C_COMPILER_ID_RUN) |