File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,8 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64")
1616endif ()
1717
1818# Statically link SDL3 for Linux targets
19- set (SDL_STATIC ON )
20-
2119if (CMAKE_SYSTEM_NAME MATCHES "Linux" )
20+ set (SDL_STATIC ON )
2221 set (CMAKE_POSITION_INDEPENDENT_CODE ON )
2322endif ()
2423
@@ -198,10 +197,17 @@ target_include_directories(iris PRIVATE
198197 res
199198)
200199
201- target_link_libraries (iris PUBLIC
202- tomlplusplus::tomlplusplus
203- SDL3::SDL3-static
204- )
200+ if (CMAKE_SYSTEM_NAME MATCHES "Linux" )
201+ target_link_libraries (iris PUBLIC
202+ tomlplusplus::tomlplusplus
203+ SDL3::SDL3-static
204+ )
205+ else ()
206+ target_link_libraries (iris PUBLIC
207+ tomlplusplus::tomlplusplus
208+ SDL3::SDL3
209+ )
210+ endif ()
205211
206212set_target_properties (iris PROPERTIES
207213 # On macOS, make a proper .app bundle instead of a bare executable
You can’t perform that action at this time.
0 commit comments