-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: Remove SDL requirement for packaging
This allows the "headers-only" target to be installed even if SDL wasn't found during configuration, enabling a "bring your own SDL" style of development for devs who vendor specific SDL versions or binaries in their codebase.
- Loading branch information
Showing
3 changed files
with
67 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
find_package(SDL2 CONFIG REQUIRED) | ||
find_package(SDL2_image CONFIG REQUIRED) | ||
find_package(SDL2_mixer CONFIG REQUIRED) | ||
find_package(SDL2_ttf CONFIG REQUIRED) | ||
find_package(SDL2 CONFIG) | ||
find_package(SDL2_image CONFIG) | ||
find_package(SDL2_mixer CONFIG) | ||
find_package(SDL2_ttf CONFIG) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/centurionTargets.cmake") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters