How to Force CMAKE_MSVC_RUNTIME_LIBRARY to be NON DEBUG for a dependency even in a debug build config #43313
Unanswered
ccpjosephf
asked this question in
Q&A
Replies: 1 comment
-
You can probably override this from triplet using VCPKG_CMAKE_CONFIGURE_OPTIONS or provide your own toolchain.If you don't need debug builds at all, set VCPKG_BUILD_TYPE to release in your triplet.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We don't support either
MultiThreadedDebug
orMultiThreadedDebugDLL
in our debug builds, however it seems impossible for me to configure this for a dependency.I can only set the
VCPKG_LIBRARY_LINKAGE
parameter to static or dynamic, which does not stop vpkg from generating this for a dependency library:CMAKE_MSVC_RUNTIME_LIBRARY:STRING=MultiThreaded$<$<CONFIG:Debug>:Debug>$<$<STREQUAL:dynamic,dynamic>:DLL>
Is there any way to force setting
CMAKE_MSVC_RUNTIME_LIBRARY
for dependencies toMultiThreadedDLL
/MultiThreaded
even in a debug configuration?Beta Was this translation helpful? Give feedback.
All reactions