diff options
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) | |||
| 35 | 35 | ||
| 36 | option(YUZU_TESTS "Compile tests" ON) | 36 | option(YUZU_TESTS "Compile tests" ON) |
| 37 | 37 | ||
| 38 | option(YUZU_USE_BUNDLED_VCPKG "Use vcpkg for yuzu dependencies" OFF) | ||
| 39 | |||
| 40 | if (YUZU_USE_BUNDLED_VCPKG) | ||
| 41 | include(${CMAKE_SOURCE_DIR}/externals/vcpkg/scripts/buildsystems/vcpkg.cmake) | ||
| 42 | elseif(NOT "$ENV{VCPKG_TOOLCHAIN_FILE}" STREQUAL "") | ||
| 43 | # Disable manifest mode (use vcpkg classic mode) when using a custom vcpkg installation | ||
| 44 | option(VCPKG_MANIFEST_MODE "") | ||
| 45 | include("$ENV{VCPKG_TOOLCHAIN_FILE}") | ||
| 46 | endif() | ||
| 47 | |||
| 38 | # Default to a Release build | 48 | # Default to a Release build |
| 39 | get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) | 49 | get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) |
| 40 | if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE) | 50 | if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE) |