Skip to content
Snippets Groups Projects
Commit 249363f5 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'compiler-id-msvc-has-include' into release-3.21


c6aaaf06 DetermineCompiler: Restore identification of MSVC with no INCLUDE dirs

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarBen Boeckel <ben.boeckel@kitware.com>
Merge-request: !6284
parents fb02657b c6aaaf06
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment