summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eda555494..aaf3a90cf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,6 +26,10 @@ option(ENABLE_CUBEB "Enables the cubeb audio backend" ON)
26 26
27option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) 27option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
28 28
29if (NOT ENABLE_WEB_SERVICE)
30 set(YUZU_ENABLE_BOXCAT OFF)
31endif()
32
29# Default to a Release build 33# Default to a Release build
30get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) 34get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
31if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE) 35if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE)
@@ -165,7 +169,7 @@ macro(yuzu_find_packages)
165 "lz4 1.8 lz4/1.9.2" 169 "lz4 1.8 lz4/1.9.2"
166 "nlohmann_json 3.8 nlohmann_json/3.8.0" 170 "nlohmann_json 3.8 nlohmann_json/3.8.0"
167 "ZLIB 1.2 zlib/1.2.11" 171 "ZLIB 1.2 zlib/1.2.11"
168 "zstd 1.4 zstd/1.4.5" 172 "zstd 1.4 zstd/1.4.8"
169 ) 173 )
170 174
171 foreach(PACKAGE ${REQUIRED_LIBS}) 175 foreach(PACKAGE ${REQUIRED_LIBS})
@@ -239,7 +243,7 @@ if(ENABLE_QT)
239 if (YUZU_USE_QT_WEB_ENGINE) 243 if (YUZU_USE_QT_WEB_ENGINE)
240 find_package(Qt5 COMPONENTS WebEngineCore WebEngineWidgets) 244 find_package(Qt5 COMPONENTS WebEngineCore WebEngineWidgets)
241 endif() 245 endif()
242 246
243 if (ENABLE_QT_TRANSLATION) 247 if (ENABLE_QT_TRANSLATION)
244 find_package(Qt5 REQUIRED COMPONENTS LinguistTools ${QT_PREFIX_HINT}) 248 find_package(Qt5 REQUIRED COMPONENTS LinguistTools ${QT_PREFIX_HINT})
245 endif() 249 endif()
@@ -322,7 +326,7 @@ if (CONAN_REQUIRED_LIBS)
322 list(APPEND Boost_LIBRARIES Boost::context) 326 list(APPEND Boost_LIBRARIES Boost::context)
323 endif() 327 endif()
324 endif() 328 endif()
325 329
326 # Due to issues with variable scopes in functions, we need to also find_package(qt5) outside of the function 330 # Due to issues with variable scopes in functions, we need to also find_package(qt5) outside of the function
327 if(ENABLE_QT) 331 if(ENABLE_QT)
328 list(APPEND CMAKE_MODULE_PATH "${CONAN_QT_ROOT_RELEASE}") 332 list(APPEND CMAKE_MODULE_PATH "${CONAN_QT_ROOT_RELEASE}")