Fixed an issue where it was impossible to link against static SFML libs on non Windows platforms

This commit is contained in:
Zachariah Brown authored and Lukas Dürrenberger committed 2018-10-06 20:46:13 +02:00
1 parent 3b41d938f9
commit bff4a69a73
2 files changed
+10 -6

No files matched your search

+3 -5
View File
@@ -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)