diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 25 |
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 | ||
| 24 | option(ENABLE_CUBEB "Enables the cubeb audio backend" ON) | 24 | option(ENABLE_CUBEB "Enables the cubeb audio backend" ON) |
| 25 | 25 | ||
| 26 | option(ENABLE_VULKAN "Enables Vulkan backend" ON) | ||
| 27 | |||
| 26 | option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) | 28 | option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) |
| 27 | 29 | ||
| 28 | if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/hooks/pre-commit) | 30 | if(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) |
| 162 | endif() | 164 | endif() |
| 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 | ||
| 166 | if (CMAKE_COMPILER_IS_GNUCC) | ||
| 167 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-new-ttp-matching") | ||
| 168 | endif() | ||
| 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 | ||
| 186 | find_package(Boost 1.63.0 QUIET) | 182 | find_package(Boost 1.66.0 QUIET) |
| 187 | if (NOT Boost_FOUND) | 183 | if (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() |
| 420 | endfunction() | 416 | endfunction() |
| 421 | 417 | ||
| 422 | # Gets a UTC timstamp and sets the provided variable to it | ||
| 423 | function(get_timestamp _var) | ||
| 424 | string(TIMESTAMP timestamp UTC) | ||
| 425 | set(${_var} "${timestamp}" PARENT_SCOPE) | ||
| 426 | endfunction() | ||
| 427 | |||
| 428 | # generate git/build information | ||
| 429 | include(GetGitRevisionDescription) | ||
| 430 | get_git_head_revision(GIT_REF_SPEC GIT_REV) | ||
| 431 | git_describe(GIT_DESC --always --long --dirty) | ||
| 432 | git_branch_name(GIT_BRANCH) | ||
| 433 | get_timestamp(BUILD_DATE) | ||
| 434 | |||
| 435 | enable_testing() | 418 | enable_testing() |
| 436 | add_subdirectory(externals) | 419 | add_subdirectory(externals) |
| 437 | add_subdirectory(src) | 420 | add_subdirectory(src) |