Replies: 2 comments
-
Try using
https://learn.microsoft.com/en-us/vcpkg/ can get one started. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you use the manifest mode, you need to add the following configuration to your cmake_minimum_required(VERSION 3.30)
if (WIN32)
set(VCPKG_TARGET_TRIPLET x64-windows-static-md)
elseif (APPLE)
set(VCPKG_TARGET_TRIPLET x64-osx) #static-md
elseif (LINUX)
set(VCPKG_TARGET_TRIPLET x64-linux) #static-md
else ()
message(FATAL_ERROR "Can't build project because platform \"${CMAKE_HOST_SYSTEM_NAME}\" not support")
endif ()
include(${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake) |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a project that produces 2 static binaries, but which depends on several libraries whose packages I installed via vcpkg. However, seeing that my build refuses to create static binaries, my AI told me it's because the libraries provided by vcpkg are (all?) dynamic.
The libraries missing from my build are:
They were installed using:
How can I tell vcpkg to create the
static
libraries I can use to link with and search from withinCMakeLists.txt
?Beta Was this translation helpful? Give feedback.
All reactions