diff options
author | fuzzard <fuzzard@kodi.tv> | 2023-09-21 15:12:35 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2023-09-24 14:12:16 +1000 |
commit | 48267283963b379d874db9c8eb8a1c64c5563d1d (patch) | |
tree | 946d11ce0f34382b587980c164c7886dc9704aff /cmake/modules/FindFstrcmp.cmake | |
parent | 4000df927488a9a3571575c9a31cb7c2c0f7d4f1 (diff) |
[cmake] FindFstrcmp update search options
Diffstat (limited to 'cmake/modules/FindFstrcmp.cmake')
-rw-r--r-- | cmake/modules/FindFstrcmp.cmake | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/cmake/modules/FindFstrcmp.cmake b/cmake/modules/FindFstrcmp.cmake index 2bf412c2dd..fa754c5b8f 100644 --- a/cmake/modules/FindFstrcmp.cmake +++ b/cmake/modules/FindFstrcmp.cmake @@ -27,15 +27,20 @@ if(NOT TARGET fstrcmp::fstrcmp) BUILD_DEP_TARGET() else() + find_package(PkgConfig) if(PKG_CONFIG_FOUND) pkg_check_modules(PC_FSTRCMP fstrcmp QUIET) endif() find_path(FSTRCMP_INCLUDE_DIR NAMES fstrcmp.h - PATHS ${PC_FSTRCMP_INCLUDEDIR}) + HINTS ${DEPENDS_PATH}/include ${PC_FSTRCMP_INCLUDEDIR} + ${${CORE_PLATFORM_LC}_SEARCH_CONFIG} + NO_CACHE) find_library(FSTRCMP_LIBRARY NAMES fstrcmp - PATHS ${PC_FSTRCMP_LIBDIR}) + HINTS ${DEPENDS_PATH}/lib ${PC_FSTRCMP_LIBDIR} + ${${CORE_PLATFORM_LC}_SEARCH_CONFIG} + NO_CACHE) set(FSTRCMP_VER ${PC_FSTRCMP_VERSION}) endif() @@ -56,5 +61,3 @@ if(NOT TARGET fstrcmp::fstrcmp) set_property(GLOBAL APPEND PROPERTY INTERNAL_DEPS_PROP fstrcmp::fstrcmp) endif() - -mark_as_advanced(FSTRCMP_INCLUDE_DIR FSTRCMP_LIBRARY) |