From cf5f6b6796c2143dec8baee6e898eca18c62a71e Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Tue, 16 Apr 2024 12:20:15 -0400 Subject: [PATCH] cmake: Deprecate legacy CMake for all platforms We now support the new, modern CMake path on all platforms. Encourage everyone to migrate by deprecating the legacy CMake path. The legacy CMake path will be removed in a future update. --- CMakeLists.txt | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e02244ec..d8af296a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,21 +34,19 @@ if(CMAKE_HOST_SYSTEM_NAME MATCHES "(Darwin)" OR OBS_CMAKE_VERSION VERSION_GREATE return() endif() -if(CMAKE_HOST_SYSTEM_NAME MATCHES "(Windows|Darwin)") - message( - DEPRECATION - "\n" - "============ LEGACY BUILD SYSTEM IS DEPRECATED ============" - "\n" - "You are using the legacy build system to build OBS Studio. " - "The legacy build system is unsupported and will be removed in the near future." - "\n" - "To migrate to the new build system, familiarize yourself with CMake presets " - "(https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html) and create " - "a user preset with your customized build settings, inheriting from one of the default presets." - "\n" - "============ LEGACY BUILD SYSTEM IS DEPRECATED ============") -endif() +message( + DEPRECATION + "\n" + "============ LEGACY BUILD SYSTEM IS DEPRECATED ============" + "\n" + "You are using the legacy build system to build OBS Studio. " + "The legacy build system is unsupported and will be removed in the near future." + "\n" + "To migrate to the new build system, familiarize yourself with CMake presets " + "(https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html) and create " + "a user preset with your customized build settings, inheriting from one of the default presets." + "\n" + "============ LEGACY BUILD SYSTEM IS DEPRECATED ============") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/Modules") include(VersionConfig)