lukka / run-vcpkg

The GitHub Action to setup vcpkg for your C++ based projects. Stores built ports using Binary Caching backed onto GH Cache.
MIT License
196 stars 26 forks source link

About Static Linking #201

Closed onurkanbakirci closed 1 year ago

onurkanbakirci commented 1 year ago

Is there any support to use vcpkg static linking feature? How to do by using run-vcpkg??

onurkanbakirci commented 1 year ago

Okey. I found it. We can use cmakeAppendedArgs prop to make static linking. For example, cmakeAppendedArgs: "-GNinja -DKANGARU_TEST=ON -DVCPKG_TARGET_TRIPLET=x64-windows-static"

onurkanbakirci commented 1 year ago

After digging into it, i think that instead of using cmakeAppendedArgs, using vcpkgTriplet: x64-windows-static is better.

lukka commented 1 year ago

@onurkanbakirci thank you for following up on this, I think that adding docs about this on the readme.md would be great.

onurkanbakirci commented 1 year ago

Hi @lukka , which section is suitable for that? Is Quickstart with instructions section on the readme.md file good?