diff options
author | fuzzard <fuzzard@kodi.tv> | 2023-09-16 13:14:21 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2023-09-16 16:43:18 +1000 |
commit | 2481f3fb58d8ed4342bc7779b5eba7984f04c273 (patch) | |
tree | e47eb608f69da2c134514d43eb25388554b27494 /cmake/modules/FindNFS.cmake | |
parent | 29755df826b063e2d51343dd9d0a1a62afa14394 (diff) |
[cmake] add support for ${CORE_PLATFORM_NAME_LC}_SEARCH_CONFIG in several find modules
Update HINTS paths as well to accommodate restricted search paths with the use of
${CORE_PLATFORM_NAME_LC}_SEARCH_CONFIG
Diffstat (limited to 'cmake/modules/FindNFS.cmake')
-rw-r--r-- | cmake/modules/FindNFS.cmake | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cmake/modules/FindNFS.cmake b/cmake/modules/FindNFS.cmake index 8608571d62..c81f2e02ae 100644 --- a/cmake/modules/FindNFS.cmake +++ b/cmake/modules/FindNFS.cmake @@ -16,7 +16,9 @@ if(NOT TARGET libnfs::nfs) SETUP_BUILD_VARS() # Search for cmake config. Suitable for all platforms including windows - find_package(libnfs CONFIG QUIET) + find_package(libnfs CONFIG QUIET + HINTS ${DEPENDS_PATH}/lib + ${${CORE_PLATFORM_NAME_LC}_SEARCH_CONFIG}) # Check for existing LIBNFS. If version >= LIBNFS-VERSION file version, dont build # A corner case, but if a linux/freebsd user WANTS to build internal libnfs, build anyway @@ -42,12 +44,16 @@ if(NOT TARGET libnfs::nfs) find_library(LIBNFS_LIBRARY_RELEASE NAMES nfs libnfs HINTS ${DEPENDS_PATH}/lib - ${PC_LIBNFS_LIBDIR}) + ${PC_LIBNFS_LIBDIR} + ${${CORE_PLATFORM_NAME_LC}_SEARCH_CONFIG} + NO_CACHE) set(LIBNFS_VERSION ${PC_LIBNFS_VERSION}) endif() find_path(LIBNFS_INCLUDE_DIR nfsc/libnfs.h HINTS ${PC_LIBNFS_INCLUDEDIR} - ${DEPENDS_PATH}/include) + ${DEPENDS_PATH}/include + ${${CORE_PLATFORM_NAME_LC}_SEARCH_CONFIG} + NO_CACHE) endif() if(TARGET libnfs::nfs) |