summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt7
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
15option(ENABLE_QT "Enable the Qt frontend" ON) 15option(ENABLE_QT "Enable the Qt frontend" ON)
16CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" ON "ENABLE_SDL2;MSVC" OFF) 16CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" ON "ENABLE_SDL2;MSVC" OFF)
17 17
18option(YUZU_USE_BUNDLED_UNICORN "Build/Download bundled Unicorn" ON)
19
18if(NOT EXISTS ${CMAKE_SOURCE_DIR}/.git/hooks/pre-commit) 20if(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()
209endif() 211endif()
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
212find_package(Unicorn QUIET) 214if (YUZU_USE_BUNDLED_UNICORN)
213if (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()
263else()
264 find_package(Unicorn REQUIRED)
262endif() 265endif()
263 266
264if (UNICORN_FOUND) 267if (UNICORN_FOUND)