[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:
2
third_party/CMakeLists.txt
vendored
2
third_party/CMakeLists.txt
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user