summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt25
1 files changed, 4 insertions, 21 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 871e0ca1a..a4914f37d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,6 +23,8 @@ option(YUZU_USE_QT_WEB_ENGINE "Use QtWebEngine for web applet implementation" OF
23 23
24option(ENABLE_CUBEB "Enables the cubeb audio backend" ON) 24option(ENABLE_CUBEB "Enables the cubeb audio backend" ON)
25 25
26option(ENABLE_VULKAN "Enables Vulkan backend" ON)
27
26option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) 28option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
27 29
28if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/hooks/pre-commit) 30if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/hooks/pre-commit)
@@ -161,12 +163,6 @@ else()
161 set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) 163 set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE)
162endif() 164endif()
163 165
164# Fix GCC C++17 and Boost.ICL incompatibility (needed to build dynarmic)
165# See https://bugzilla.redhat.com/show_bug.cgi?id=1485641#c1
166if (CMAKE_COMPILER_IS_GNUCC)
167 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-new-ttp-matching")
168endif()
169
170# Set file offset size to 64 bits. 166# Set file offset size to 64 bits.
171# 167#
172# On modern Unixes, this is typically already the case. The lone exception is 168# On modern Unixes, this is typically already the case. The lone exception is
@@ -183,9 +179,9 @@ set_property(DIRECTORY APPEND PROPERTY
183# System imported libraries 179# System imported libraries
184# ====================== 180# ======================
185 181
186find_package(Boost 1.63.0 QUIET) 182find_package(Boost 1.66.0 QUIET)
187if (NOT Boost_FOUND) 183if (NOT Boost_FOUND)
188 message(STATUS "Boost 1.63.0 or newer not found, falling back to externals") 184 message(STATUS "Boost 1.66.0 or newer not found, falling back to externals")
189 185
190 set(BOOST_ROOT "${PROJECT_SOURCE_DIR}/externals/boost") 186 set(BOOST_ROOT "${PROJECT_SOURCE_DIR}/externals/boost")
191 set(Boost_NO_SYSTEM_PATHS OFF) 187 set(Boost_NO_SYSTEM_PATHS OFF)
@@ -419,19 +415,6 @@ function(create_target_directory_groups target_name)
419 endforeach() 415 endforeach()
420endfunction() 416endfunction()
421 417
422# Gets a UTC timstamp and sets the provided variable to it
423function(get_timestamp _var)
424 string(TIMESTAMP timestamp UTC)
425 set(${_var} "${timestamp}" PARENT_SCOPE)
426endfunction()
427
428# generate git/build information
429include(GetGitRevisionDescription)
430get_git_head_revision(GIT_REF_SPEC GIT_REV)
431git_describe(GIT_DESC --always --long --dirty)
432git_branch_name(GIT_BRANCH)
433get_timestamp(BUILD_DATE)
434
435enable_testing() 418enable_testing()
436add_subdirectory(externals) 419add_subdirectory(externals)
437add_subdirectory(src) 420add_subdirectory(src)