add cmake options to perfer system libs to sdl and sdl_image
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
This commit is contained in:
43
external/freetype/CMakeLists.txt
vendored
43
external/freetype/CMakeLists.txt
vendored
@ -1,29 +1,26 @@
|
||||
cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
if (NOT TARGET Freetype::Freetype)
|
||||
find_package(Freetype 2.12 CONFIG GLOBAL QUIET)
|
||||
|
||||
if (NOT TARGET Freetype::Freetype)
|
||||
find_package(Freetype 2.12 GLOBAL QUIET)
|
||||
endif()
|
||||
|
||||
#if (NOT TARGET Freetype::Freetype)
|
||||
# find_package(PkgConfig)
|
||||
# if (PKG_CONFIG_FOUND)
|
||||
# pkg_check_modules(freetype_PKG IMPORTED_TARGET freetype)
|
||||
|
||||
# if (TARGET PkgConfig::freetype_PKG)
|
||||
# add_library(Freetype::Freetype ALIAS PkgConfig::freetype_PKG)
|
||||
# endif()
|
||||
# endif()
|
||||
#endif()
|
||||
|
||||
if (TARGET Freetype::Freetype)
|
||||
message(STATUS "found freetype")
|
||||
else()
|
||||
message(STATUS "freetype not found")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (NOT TARGET Freetype::Freetype)
|
||||
find_package(Freetype 2.12 GLOBAL QUIET)
|
||||
endif()
|
||||
|
||||
#if (NOT TARGET Freetype::Freetype)
|
||||
# find_package(PkgConfig)
|
||||
# if (PKG_CONFIG_FOUND)
|
||||
# pkg_check_modules(freetype_PKG IMPORTED_TARGET freetype)
|
||||
|
||||
# if (TARGET PkgConfig::freetype_PKG)
|
||||
# add_library(Freetype::Freetype ALIAS PkgConfig::freetype_PKG)
|
||||
# endif()
|
||||
# endif()
|
||||
#endif()
|
||||
|
||||
if (TARGET Freetype::Freetype)
|
||||
message(STATUS "found freetype")
|
||||
else()
|
||||
message(STATUS "freetype not found")
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user