diff options
author | lat9nq <[email protected]> | 2022-07-22 14:49:43 -0400 |
---|---|---|
committer | lat9nq <[email protected]> | 2022-07-22 20:54:00 -0400 |
commit | 265d1d697935ec65e31d55fc424d96276d41a8c9 (patch) | |
tree | 2bf3da2f89b9fa8e7b33bfd088920613a9982949 /CMakeLists.txt | |
parent | 4b93ea59dbf15ba82bf711c9713ee7dee7784217 (diff) | |
download | yuzu-mainline-265d1d697935ec65e31d55fc424d96276d41a8c9.tar.gz yuzu-mainline-265d1d697935ec65e31d55fc424d96276d41a8c9.zip |
ci,CMake: Integrate vcpkg into CMakeLists
Uses manifest mode if the bundled vcpkg is used.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index aed076dea..6993b6967 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,16 @@ option(YUZU_USE_BUNDLED_OPUS "Compile bundled opus" ON) option(YUZU_TESTS "Compile tests" ON) +option(YUZU_USE_BUNDLED_VCPKG "Use vcpkg for yuzu dependencies" OFF) + +if (YUZU_USE_BUNDLED_VCPKG) + include(${CMAKE_SOURCE_DIR}/externals/vcpkg/scripts/buildsystems/vcpkg.cmake) +elseif(NOT "$ENV{VCPKG_TOOLCHAIN_FILE}" STREQUAL "") + # Disable manifest mode (use vcpkg classic mode) when using a custom vcpkg installation + option(VCPKG_MANIFEST_MODE "") + include("$ENV{VCPKG_TOOLCHAIN_FILE}") +endif() + # Default to a Release build get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE) |