mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Fix cmake/sfml version issue on Arch Linux.
This commit is contained in:
@ -311,13 +311,16 @@ else(SDL_FOUND)
|
||||
add_subdirectory(Externals/SDL)
|
||||
endif(SDL_FOUND)
|
||||
|
||||
check_lib(SFML sfml-network SFML/Network/Ftp.hpp QUIET)
|
||||
if(SFML_FOUND)
|
||||
message("Using shared sfml-network")
|
||||
set(SFML_FIND_VERSION TRUE)
|
||||
set(SFML_FIND_VERSION_MAJOR 1)
|
||||
set(SFML_FIND_VERSION_MINOR 5)
|
||||
include(FindSFML OPTIONAL)
|
||||
if(SFML_FOUND AND SFML_VERSION_OK AND (SFML_VERSION_MAJOR EQUAL 1))
|
||||
message("Using shared SFML")
|
||||
else()
|
||||
message("Shared sfml-network not found, falling back to the static library")
|
||||
add_subdirectory(Externals/SFML)
|
||||
include_directories(Externals/SFML/include)
|
||||
message("Shared (1.5 <= SFML < 2.0) not found, falling back to the static library")
|
||||
add_subdirectory(Externals/SFML)
|
||||
include_directories(Externals/SFML/include)
|
||||
endif()
|
||||
|
||||
check_lib(SOIL SOIL SOIL/SOIL.h QUIET)
|
||||
|
Reference in New Issue
Block a user