Can vcpkg symlink $TRIPLET_INSTALL/debug/include -> $TRIPLET_INSTALL/include on Linux? #17772
jumpinjackie
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the process of working on a fix for #6680 I found that the current vcpkg triplet install layout on Linux (and possibly OSX too) does not easily lend itself to internal vcpkg port consumption for ports whose build process involves a
./configurescript invocation.In the case of
gdaland #6680 I tried to modify the portfile so that it runs./configurewith:For release:
--with-png=${CURRENT_INSTALLED_DIR}--with-proj=${CURRENT_INSTALLED_DIR}For debug:
--with-png=${CURRENT_INSTALLED_DIR}/debug--with-proj=${CURRENT_INSTALLED_DIR}/debugWhere
${CURRENT_INSTALLED_DIR}is the current triplet install directory variable provided by vcpkg.This works fine in release mode, where
${CURRENT_INSTALLED_DIR}/includeand${CURRENT_INSTALLED_DIR}/libwill be present, but for debug the headers won't be detected by the configure script because theincludedirectory doesn't exist in${CURRENT_INSTALLED_DIR}/debugIf we're lucky, a configure script may offer the ability to specify
--with-library-incand--with-library-libindividually, but in the case ofgdal(and possibly many other ports that use./configurescripts), they mainly offer--with-libraryvariant where the include and library paths are determined relative to the provided path.So given this situation, would it be easy for vcpkg to create a symlink
$TRIPLET_INSTALL/debug/include->$TRIPLET_INSTALL/includewhen installing (and not already present) to allow ports likegdalto better take advantage of available vcpkg ports where available?With this symlink in place, I can build
gdalin debug and it can properly consumelibpngandprojports in debug.This would beat the alternative of needing to provide configure script patches to allow passing include/lib paths separately.
Beta Was this translation helpful? Give feedback.
All reactions