Skip to content

Commit 940c54a

Browse files
committed
Fix MSVC implicit include flags
1 parent c974e5c commit 940c54a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ endif()
315315
# used to ensure these C/C++ headers are not passed to the Swift compiler.
316316
if(MSVC)
317317
add_compile_options(
318-
$<$<COMPILE_LANGUAGE:CXX>:/FI"assert.h" /FI"string.h" /FI"stdint.h">)
318+
$<$<COMPILE_LANGUAGE:CXX>:/FI"assert.h">
319+
$<$<COMPILE_LANGUAGE:CXX>:/FI"string.h">
320+
$<$<COMPILE_LANGUAGE:CXX>:/FI"stdint.h">)
319321
elseif(APPLE)
320322
add_compile_options(
321323
"$<$<COMPILE_LANGUAGE:CXX>:SHELL:-include assert.h>"

0 commit comments

Comments
 (0)