[Build] Guard Linux-specific CMake config behind platform check

GTK3, system SDL2 (pkg-config), Linux link libraries, linker groups,
and _GLIBCXX_DEBUG were in the generic non-MSVC branch, breaking
cmake configure on non-Linux POSIX platforms.
This commit is contained in:
Herman S.
2026-03-26 21:36:49 +09:00
parent 597a0c2d1e
commit 6c20f64e0d
2 changed files with 21 additions and 15 deletions

View File

@@ -431,7 +431,7 @@ if(WIN32)
)
target_include_directories(SDL2 PUBLIC SDL2/include)
target_link_libraries(SDL2 PRIVATE setupapi winmm imm32 version)
else()
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
# Use system SDL2 on Linux
add_library(SDL2 INTERFACE)
find_package(PkgConfig REQUIRED)