Do not install extlibs if SFML_USE_SYSTEM_DEPS is true.
Signed-off-by: Marty Plummer <ntzrmtthihu777@gmail.com>
This commit is contained in:
parent
c43b5991af
commit
bd479c4454
@ -408,6 +408,7 @@ endif()
|
|||||||
# install 3rd-party libraries and tools
|
# install 3rd-party libraries and tools
|
||||||
if(SFML_OS_WINDOWS)
|
if(SFML_OS_WINDOWS)
|
||||||
|
|
||||||
|
if(NOT SFML_USE_SYSTEM_DEPS)
|
||||||
# install the binaries of SFML dependencies
|
# install the binaries of SFML dependencies
|
||||||
if(ARCH_32BITS)
|
if(ARCH_32BITS)
|
||||||
install(DIRECTORY extlibs/bin/x86/ DESTINATION bin)
|
install(DIRECTORY extlibs/bin/x86/ DESTINATION bin)
|
||||||
@ -428,6 +429,7 @@ if(SFML_OS_WINDOWS)
|
|||||||
install(DIRECTORY extlibs/libs-mingw/x64/ DESTINATION lib)
|
install(DIRECTORY extlibs/libs-mingw/x64/ DESTINATION lib)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
elseif(SFML_OS_MACOSX)
|
elseif(SFML_OS_MACOSX)
|
||||||
|
|
||||||
@ -486,17 +488,21 @@ elseif(SFML_OS_IOS)
|
|||||||
install(DIRECTORY "${CMAKE_BINARY_DIR}/lib/\$ENV{CONFIGURATION}/" DESTINATION lib${LIB_SUFFIX})
|
install(DIRECTORY "${CMAKE_BINARY_DIR}/lib/\$ENV{CONFIGURATION}/" DESTINATION lib${LIB_SUFFIX})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT SFML_USE_SYSTEM_DEPS)
|
||||||
# since the iOS libraries are built as static, we must install the SFML dependencies
|
# since the iOS libraries are built as static, we must install the SFML dependencies
|
||||||
# too so that the end user can easily link them to its final application
|
# too so that the end user can easily link them to its final application
|
||||||
if(SFML_BUILD_GRAPHICS)
|
if(SFML_BUILD_GRAPHICS)
|
||||||
install(FILES extlibs/libs-ios/libfreetype.a extlibs/libs-ios/libjpeg.a DESTINATION lib)
|
install(FILES extlibs/libs-ios/libfreetype.a extlibs/libs-ios/libjpeg.a DESTINATION lib)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
elseif(SFML_OS_ANDROID)
|
elseif(SFML_OS_ANDROID)
|
||||||
|
|
||||||
|
if(NOT SFML_USE_SYSTEM_DEPS)
|
||||||
# install extlibs
|
# install extlibs
|
||||||
install(DIRECTORY extlibs/libs-android/${ANDROID_ABI} DESTINATION extlibs/lib)
|
install(DIRECTORY extlibs/libs-android/${ANDROID_ABI} DESTINATION extlibs/lib)
|
||||||
install(FILES extlibs/Android.mk DESTINATION extlibs)
|
install(FILES extlibs/Android.mk DESTINATION extlibs)
|
||||||
|
endif()
|
||||||
|
|
||||||
# install Android.mk so the NDK knows how to set up SFML
|
# install Android.mk so the NDK knows how to set up SFML
|
||||||
install(FILES src/SFML/Android.mk DESTINATION .)
|
install(FILES src/SFML/Android.mk DESTINATION .)
|
||||||
|
Loading…
Reference in New Issue
Block a user