Created
September 14, 2023 20:52
-
-
Save dsvensson/086e2b861a2827b8d09589a024b94af2 to your computer and use it in GitHub Desktop.
vcpkg static linux build setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 6, | |
"cmakeMinimumRequired": { | |
"major": 3, | |
"minor": 9, | |
"patch": 0 | |
}, | |
"configurePresets": [ | |
{ | |
"name": "default", | |
"displayName": "Release", | |
"description": "Default build using Ninja generator", | |
"generator": "Ninja", | |
"cacheVariables": { | |
"CMAKE_TOOLCHAIN_FILE": "vcpkg/scripts/buildsystems/vcpkg.cmake", | |
"VCPKG_BUILD_TYPE": "release", | |
"VCPKG_LIBRARY_LINKAGE": "static", | |
"VCPKG_CRT_LINKAGE": "dynamic", | |
"VCPKG_TARGET_ARCHITECTURE": "x64" | |
}, | |
"condition": { | |
"type": "equals", | |
"lhs": "${hostSystemName}", | |
"rhs": "Linux" | |
} | |
} | |
], | |
"buildPresets": [ | |
{ | |
"name": "default", | |
"configurePreset": "default" | |
} | |
], | |
"workflowPresets": [ | |
{ | |
"name": "default", | |
"steps": [ | |
{ | |
"type": "configure", | |
"name": "default" | |
}, | |
{ | |
"type": "build", | |
"name": "default" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
missed some setting so it's a debug build, should be trivial to fix:
otherwise: