From deb39cc20f579cb7edd4008ec1df26460f1d17db Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 12 Jan 2024 08:17:26 +0000 Subject: [PATCH] CMake: Set LINUX in current and parent scope --- cmake/Pcsx2Utils.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/Pcsx2Utils.cmake b/cmake/Pcsx2Utils.cmake index 03e2bc4c0e..6af1e8af6f 100644 --- a/cmake/Pcsx2Utils.cmake +++ b/cmake/Pcsx2Utils.cmake @@ -1,7 +1,12 @@ function(detect_operating_system) + message(STATUS "CMake Version: ${CMAKE_VERSION}") + message(STATUS "CMake System Name: ${CMAKE_SYSTEM_NAME}") + # LINUX wasn't added until CMake 3.25. if (CMAKE_VERSION VERSION_LESS 3.25.0 AND CMAKE_SYSTEM_NAME MATCHES "Linux") + # Have to make it visible in this scope as well for below. set(LINUX TRUE PARENT_SCOPE) + set(LINUX TRUE) endif() if(WIN32)