Skip to content

Commit

Permalink
Link SDL3::SDL3 after SDL3_image::SDL3_image
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 23, 2025
1 parent 4ff27af commit c4f1bf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/INTRO-cmake.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ add_subdirectory(vendored/SDL_image EXCLUDE_FROM_ALL)
add_executable(hello WIN32 hello.c)
# Link to the actual SDL3 library.
target_link_libraries(hello PRIVATE SDL3::SDL3 SDL3_image::SDL3_image)
target_link_libraries(hello PRIVATE SDL3_image::SDL3_image SDL3::SDL3)
```

Build:
Expand Down
2 changes: 1 addition & 1 deletion docs/INTRO-emscripten.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ endif()
add_executable(hello WIN32 hello.c)
# Link to the actual SDL3 library.
target_link_libraries(hello PRIVATE SDL3::SDL3 SDL3_image::SDL3_image)
target_link_libraries(hello PRIVATE SDL3_image::SDL3_image SDL3::SDL3)
```

Build:
Expand Down

0 comments on commit c4f1bf1

Please sign in to comment.