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'm in the same boat as issue #18862.
I'm running a CMAKE multi-config project with 4 configurations: 'Full debug', 'Optimized debug', 'Release with debug info' and 'Release'.
I've been trying to figure out how to setup vcpkg to build for all these configurations (and build these as static libs) but it seems impossible.
The main issue is that I can't link with the release and debug builds provided by vcpkg with all my configurations.
If I build 'Full debug', that works fine, since that will link to the debug version.
If I build 'Optimized debug', I set the _ITERATOR_DEBUG_LEVEL = 0 define in my projects, but still set crt to mtd.
This mode is not supported by vcpkg, so I'd need to build using custom triplets. Okay cool, but if I then select this triplet, I'm no longer able to build 'Full debug', since that has _ITERATOR_DEBUG_LEVEL = 2..
I also can't select a triplet with a generator expression, since vcpkg will run during configure, not during build.
I'm super lost here, maybe someone knows a way to solve this problem or point me in the right direction. I'm honestly very disappointed that something this simple is still this impossible to do
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
-
I'm in the same boat as issue #18862.
I'm running a CMAKE multi-config project with 4 configurations: 'Full debug', 'Optimized debug', 'Release with debug info' and 'Release'.
I've been trying to figure out how to setup vcpkg to build for all these configurations (and build these as static libs) but it seems impossible.
The main issue is that I can't link with the release and debug builds provided by vcpkg with all my configurations.
If I build 'Full debug', that works fine, since that will link to the debug version.
If I build 'Optimized debug', I set the
_ITERATOR_DEBUG_LEVEL = 0
define in my projects, but still set crt tomtd
.This mode is not supported by vcpkg, so I'd need to build using custom triplets. Okay cool, but if I then select this triplet, I'm no longer able to build 'Full debug', since that has
_ITERATOR_DEBUG_LEVEL = 2
..I also can't select a triplet with a generator expression, since vcpkg will run during configure, not during build.
I'm super lost here, maybe someone knows a way to solve this problem or point me in the right direction. I'm honestly very disappointed that something this simple is still this impossible to do
Beta Was this translation helpful? Give feedback.
All reactions