mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 03:11:08 -06:00
Merge topic 'compiler-id-msvc-has-include'
c6aaaf066a DetermineCompiler: Restore identification of MSVC with no INCLUDE dirs
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !6284
This commit is contained in:
@@ -85,6 +85,10 @@ else()
|
||||
|
||||
# ARMClang need target options
|
||||
"--target=arm-arm-none-eabi -mcpu=cortex-m3"
|
||||
|
||||
# MSVC needs at least one include directory for __has_include to function,
|
||||
# but custom toolchains may run MSVC with no INCLUDE env var and no -I flags.
|
||||
"-I__does_not_exist__"
|
||||
)
|
||||
endif()
|
||||
if(CMAKE_C_COMPILER_TARGET)
|
||||
|
||||
@@ -80,6 +80,10 @@ else()
|
||||
|
||||
# ARMClang need target options
|
||||
"--target=arm-arm-none-eabi -mcpu=cortex-m3"
|
||||
|
||||
# MSVC needs at least one include directory for __has_include to function,
|
||||
# but custom toolchains may run MSVC with no INCLUDE env var and no -I flags.
|
||||
"-I__does_not_exist__"
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user