Can't create two repeatable "/external:I"
I have such a code
target_compile_options(
deios_shared
PUBLIC $<$<CXX_COMPILER_ID:MSVC>:
/W4
/WX
/experimental:external
/external:I ../deps
/external:I ${VCPKG_INCLUDE}
/external:W0
>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:
-Wall
-Wno-braced-scalar-init
-Wextra
-pedantic
-Werror
>)
and have next output in visual studio
%(AdditionalOptions) /experimental:external /external:I ../deps D:\Code\vcpkg\installed\x64-windows-static\include /external:W0
But I actually need
%(AdditionalOptions) /experimental:external /external:I ../deps /external:I D:\Code\vcpkg\installed\x64-windows-static\include
/external:W0
This is actually a thing, which force us to wrap every include of vcpkg into pragma supress warn...
Edited by Ghost User