-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[thor] Support UNIX, re-fix dependency sfml (#17766)
* [thor] Support UNIX, re-fix dependency sfml * update baseline * update version record * improve portfile.cmake * update version record
- Loading branch information
Showing
8 changed files
with
66 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 03536be..abcff44 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -115,11 +115,10 @@ set (CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules/;${CMAKE_MODULE_PATH | ||
if(NOT THOR_SHARED_LIBS) | ||
set(SFML_STATIC_LIBRARIES TRUE) | ||
endif() | ||
-find_package(SFML 2 COMPONENTS audio graphics window system) | ||
+find_package(SFML COMPONENTS system window graphics CONFIG REQUIRED) | ||
+set(SFML_LIBRARIES sfml-system sfml-network sfml-graphics sfml-window) | ||
|
||
-if(SFML_FOUND) | ||
- include_directories(${SFML_INCLUDE_DIR}) | ||
-else() | ||
+if(0) | ||
set(SFML_ROOT "" CACHE PATH "SFML top-level directory") | ||
message("\n-> SFML directory not found. Set SFML_ROOT to SFML's top-level path (containing \"include\" and \"lib\" directories).") | ||
message("-> Make sure the SFML libraries with the same configuration (Release/Debug, Static/Dynamic) exist.\n") | ||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index 75e118e..0f90ac8 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -72,6 +72,7 @@ else() | ||
add_library(${THOR_LIB} STATIC ${THOR_SRC}) | ||
set_target_properties(${THOR_LIB} PROPERTIES DEBUG_POSTFIX -s-d) | ||
set_target_properties(${THOR_LIB} PROPERTIES RELEASE_POSTFIX -s) | ||
+ thor_link_sfml(${THOR_LIB}) | ||
endif() | ||
|
||
|
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "thor", | ||
"version": "2.0", | ||
"port-version": 4, | ||
"description": "Extends the multimedia library SFML with higher-level features", | ||
"homepage": "www.bromeon.ch/libraries/thor", | ||
"dependencies": [ | ||
"aurora", | ||
"sfml" | ||
] | ||
} |
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
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