Skip to content

Commit c2cf453

Browse files
committed
cmake: Statically link SDL3
1 parent b83321b commit c2cf453

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.16...4.0)
1+
cmake_minimum_required(VERSION 3.1...4.0)
22

33
# We need to build release always, unoptimized builds
44
# won't cut it.
@@ -192,7 +192,7 @@ target_include_directories(iris PRIVATE
192192

193193
target_link_libraries(iris PUBLIC
194194
tomlplusplus::tomlplusplus
195-
SDL3::SDL3
195+
SDL3::SDL3-static
196196
)
197197

198198
set_target_properties(iris PROPERTIES
@@ -259,4 +259,4 @@ if (CMAKE_SYSTEM_NAME MATCHES "Windows")
259259
"$<TARGET_RUNTIME_DLLS:iris>" "$<TARGET_FILE_DIR:iris>"
260260
COMMAND_EXPAND_LISTS
261261
)
262-
endif()
262+
endif()

0 commit comments

Comments
 (0)