Vcpkg: [Suggestion] Default triplets should be static builds with /MD.

Created on 24 Jan 2018  路  2Comments  路  Source: microsoft/vcpkg

Right now the default triplets enable DLL build with /MD.. But it causes a certain number of issues with libraries, such as Botan (C4251 all over the place) in addition of quickly polluting the output folders.

Unfortunately the *-static triplets only allows for static CRT linkage, which is in my knowledge, not a very good choice nor a very popular one.

Is there any reason yet why DLL build is preferred over static build ? Could it be possible to change the default triplets and rename the old ones as *-dll instead ?

question

Most helpful comment

What if we add an option for static linkage with dynamic CRT linkage?

All 2 comments

Changing the triplets now would be a lot of work.

If you don't like the provided triplets make your own, say x64-windows-Bitkoda.cmake
x64-windows-Bitkoda.cmake set(VCPKG_TARGET_ARCHITECTURE x64) set(VCPKG_CRT_LINKAGE dynamic) set(VCPKG_LIBRARY_LINKAGE static)

If you want that triplet to be the default, set VCPKG_DEFAULT_TRIPLET=x64-windows-Bitkoda

Did I miss the point of your request?

What if we add an option for static linkage with dynamic CRT linkage?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jack17529 picture jack17529  路  3Comments

ThinkalVB picture ThinkalVB  路  3Comments

aspioupiou picture aspioupiou  路  3Comments

tzbo picture tzbo  路  3Comments

oahzuw picture oahzuw  路  3Comments