diff options
| -rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5dee41abc..4ecae84b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -15,6 +15,8 @@ CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_SDL2 "Download bundled SDL2 binaries" ON | |||
| 15 | option(ENABLE_QT "Enable the Qt frontend" ON) | 15 | option(ENABLE_QT "Enable the Qt frontend" ON) |
| 16 | CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" ON "ENABLE_SDL2;MSVC" OFF) | 16 | CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" ON "ENABLE_SDL2;MSVC" OFF) |
| 17 | 17 | ||
| 18 | option(YUZU_USE_BUNDLED_UNICORN "Build/Download bundled Unicorn" ON) | ||
| 19 | |||
| 18 | if(NOT EXISTS ${CMAKE_SOURCE_DIR}/.git/hooks/pre-commit) | 20 | if(NOT EXISTS ${CMAKE_SOURCE_DIR}/.git/hooks/pre-commit) |
| 19 | message(STATUS "Copying pre-commit hook") | 21 | message(STATUS "Copying pre-commit hook") |
| 20 | file(COPY hooks/pre-commit | 22 | file(COPY hooks/pre-commit |
| @@ -209,8 +211,7 @@ else() | |||
| 209 | endif() | 211 | endif() |
| 210 | 212 | ||
| 211 | # If unicorn isn't found, msvc -> download bundled unicorn; everyone else -> build external | 213 | # If unicorn isn't found, msvc -> download bundled unicorn; everyone else -> build external |
| 212 | find_package(Unicorn QUIET) | 214 | if (YUZU_USE_BUNDLED_UNICORN) |
| 213 | if (NOT UNICORN_FOUND) | ||
| 214 | if (MSVC) | 215 | if (MSVC) |
| 215 | message(STATUS "unicorn not found, falling back to bundled") | 216 | message(STATUS "unicorn not found, falling back to bundled") |
| 216 | # Detect toolchain and platform | 217 | # Detect toolchain and platform |
| @@ -259,6 +260,8 @@ if (NOT UNICORN_FOUND) | |||
| 259 | ) | 260 | ) |
| 260 | unset(UNICORN_LIB_NAME) | 261 | unset(UNICORN_LIB_NAME) |
| 261 | endif() | 262 | endif() |
| 263 | else() | ||
| 264 | find_package(Unicorn REQUIRED) | ||
| 262 | endif() | 265 | endif() |
| 263 | 266 | ||
| 264 | if (UNICORN_FOUND) | 267 | if (UNICORN_FOUND) |