mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Previously, `CMAKE_ASM${DIALECT}_COMPILER_FRONTEND_VARIANT` and
`CMAKE_ASM${DIALECT}_SIMULATE_ID` were not saved in with the build
configuration. As a result, these were left unpopulated on re-configure.
This is particularly problematic when `clang-cl` is used as the
assembler on Windows, since CMake would mistakenly identify the build as
being "GCC on Windows", resulting in include paths being passed with
forward slashes on re-configure, causing a full rebuild.
Fix the issue by saving the information so it persists across
re-configures.
6 lines
246 B
CMake
6 lines
246 B
CMake
# A GNU-like command-line leaves the simulate id empty.
|
|
set(expect_CMAKE_ASM_COMPILER_ID "Clang")
|
|
set(expect_CMAKE_ASM_SIMULATE_ID "")
|
|
set(expect_CMAKE_ASM_COMPILER_FRONTEND_VARIANT "GNU")
|
|
include("${RunCMake_SOURCE_DIR}/ASM-check-common.cmake")
|