diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-11-06 02:31:43 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-11-06 02:41:55 -0600 |
| commit | 1e144a7cfd2c31f955de83fa73428070d4b0f7c3 (patch) | |
| tree | cb119dcbd9f1a7df4db18cfc9ef56fdfe7c8d5cc /CMakeLists.txt | |
| parent | 2170080f5355fa7f808a22b58e7ff67d0b89edc8 (diff) | |
CMakeLists: Fix build on Linux with CMake versions less than 3.25.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 77eb170452..77ceff3bda 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,10 @@ set(CMAKE_USER_MAKE_RULES_OVERRIDE "${CMAKE_CURRENT_SOURCE_DIR}/CMake/FlagsOverr project(dolphin-emu) +if (CMAKE_VERSION VERSION_LESS "3.25" AND CMAKE_SYSTEM_NAME MATCHES "Linux") + set(LINUX TRUE) +endif() + if (MSVC) if (POLICY CMP0117) # cmake is a weird language. You can't do if(not POLICY) |
