diff options
| author | 2015-09-10 15:08:29 -0400 | |
|---|---|---|
| committer | 2015-09-10 15:08:29 -0400 | |
| commit | 299a4ecd3ef7f10de46826545d143c0f69841efe (patch) | |
| tree | 3a4ef5cc63bf72918bd130a89d71566e9c5d04ad | |
| parent | Merge pull request #1133 from lioncash/emplace-back (diff) | |
| parent | CMake: Make all cache options appear even in case of errors (diff) | |
| download | yuzu-299a4ecd3ef7f10de46826545d143c0f69841efe.tar.gz yuzu-299a4ecd3ef7f10de46826545d143c0f69841efe.tar.xz yuzu-299a4ecd3ef7f10de46826545d143c0f69841efe.zip | |
Merge pull request #1128 from yuriks/cmake-options
CMake: Make all cache options appear even in case of errors
| -rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0bf2df504..fa6463b01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -35,6 +35,13 @@ endfunction() | |||
| 35 | 35 | ||
| 36 | project(citra) | 36 | project(citra) |
| 37 | 37 | ||
| 38 | option(ENABLE_GLFW "Enable the GLFW frontend" ON) | ||
| 39 | option(CITRA_USE_BUNDLED_GLFW "Download bundled GLFW binaries" OFF) | ||
| 40 | |||
| 41 | option(ENABLE_QT "Enable the Qt frontend" ON) | ||
| 42 | option(CITRA_USE_BUNDLED_QT "Download bundled Qt binaries" OFF) | ||
| 43 | option(CITRA_FORCE_QT4 "Use Qt4 even if Qt5 is available." OFF) | ||
| 44 | |||
| 38 | if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git/hooks/pre-commit) | 45 | if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git/hooks/pre-commit) |
| 39 | message(STATUS "Copying pre-commit hook") | 46 | message(STATUS "Copying pre-commit hook") |
| 40 | file(COPY hooks/pre-commit | 47 | file(COPY hooks/pre-commit |
| @@ -129,8 +136,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/externals/cmake-modules") | |||
| 129 | find_package(OpenGL REQUIRED) | 136 | find_package(OpenGL REQUIRED) |
| 130 | include_directories(${OPENGL_INCLUDE_DIR}) | 137 | include_directories(${OPENGL_INCLUDE_DIR}) |
| 131 | 138 | ||
| 132 | option(ENABLE_GLFW "Enable the GLFW frontend" ON) | ||
| 133 | option(CITRA_USE_BUNDLED_GLFW "Download bundled GLFW binaries" OFF) | ||
| 134 | if (ENABLE_GLFW) | 139 | if (ENABLE_GLFW) |
| 135 | if (CITRA_USE_BUNDLED_GLFW) | 140 | if (CITRA_USE_BUNDLED_GLFW) |
| 136 | # Detect toolchain and platform | 141 | # Detect toolchain and platform |
| @@ -176,9 +181,6 @@ ELSE() | |||
| 176 | set(PLATFORM_LIBRARIES rt) | 181 | set(PLATFORM_LIBRARIES rt) |
| 177 | ENDIF (APPLE) | 182 | ENDIF (APPLE) |
| 178 | 183 | ||
| 179 | option(ENABLE_QT "Enable the Qt frontend" ON) | ||
| 180 | option(CITRA_USE_BUNDLED_QT "Download bundled Qt binaries" OFF) | ||
| 181 | option(CITRA_FORCE_QT4 "Use Qt4 even if Qt5 is available." OFF) | ||
| 182 | if (ENABLE_QT) | 184 | if (ENABLE_QT) |
| 183 | if (CITRA_USE_BUNDLED_QT) | 185 | if (CITRA_USE_BUNDLED_QT) |
| 184 | if (MSVC14 AND ARCHITECTURE_x86_64) | 186 | if (MSVC14 AND ARCHITECTURE_x86_64) |