You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got an overlay port (MYLIBRARY) with many header files that reference files from the include/MYLIBRARY folder like this: #include <Sibling.h>, or like #include "Root.h" (where Root.h is located at include/MYLIBRARY/Root.h, and the referencing file is in a subfolder).
There are too many header files to solve this with .patch files.
Using CMake, I can solve this easily by calling target_include_directories() for every target I provide in the port's share/MYLIBRARY/MYLIBRARY-config.cmake file. However, using .vcxproj files to build consuming projects through Visual Studio 2022/MSBuild, I cannot find a way to add this folder to the include folders. There don't seem to be any vcpkg macros available to use in an <IncludePath> property that point to vcpkg_installed\x64-windows (I could hardcode that but I need to build for other triplets too).
I've also tried adding the overlay port files directory's include folder to the <IncludePath> property, but that leads to double definition errors.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've got an overlay port (
MYLIBRARY) with many header files that reference files from theinclude/MYLIBRARYfolder like this:#include <Sibling.h>, or like#include "Root.h"(whereRoot.his located atinclude/MYLIBRARY/Root.h, and the referencing file is in a subfolder).There are too many header files to solve this with .patch files.
Using CMake, I can solve this easily by calling target_include_directories() for every target I provide in the port's share/MYLIBRARY/MYLIBRARY-config.cmake file. However, using .vcxproj files to build consuming projects through Visual Studio 2022/MSBuild, I cannot find a way to add this folder to the include folders. There don't seem to be any vcpkg macros available to use in an
<IncludePath>property that point tovcpkg_installed\x64-windows(I could hardcode that but I need to build for other triplets too).I've also tried adding the overlay port files directory's include folder to the
<IncludePath>property, but that leads to double definition errors.Beta Was this translation helpful? Give feedback.
All reactions