mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 21:16:13 +01:00
Fixed an issue where it was impossible to link against static SFML libs on non Windows platforms
This commit is contained in:
1 parent
3b41d938f9
commit
bff4a69a73
2 files changed
+10
-6
No files matched your search
@@ -17,11 +17,9 @@ if(SFML_COMPILER_MSVC)
|
||||
endif()
|
||||
|
||||
# find SFML libraries (C++)
|
||||
if(SFML_OS_WINDOWS)
|
||||
if (CSFML_LINK_SFML_STATICALLY)
|
||||
set(SFML_STATIC_LIBRARIES TRUE)
|
||||
add_definitions(-DSFML_STATIC)
|
||||
endif()
|
||||
if(CSFML_LINK_SFML_STATICALLY)
|
||||
set(SFML_STATIC_LIBRARIES TRUE)
|
||||
add_definitions(-DSFML_STATIC)
|
||||
endif()
|
||||
find_package(SFML 2 COMPONENTS network graphics audio REQUIRED)
|
||||
|
||||
|
||||
Reference in new issue
Block a user