From 113b921934de353cfac926b13263222c553304aa Mon Sep 17 00:00:00 2001 From: Markus Hofstaetter Date: Wed, 25 Oct 2023 15:30:16 +0200 Subject: [PATCH] Find without cache for imported location Previously found library will use hint instead of previous search Co-authored-by: Martin Pecka --- cmake/catkin_libraries.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/catkin_libraries.cmake b/cmake/catkin_libraries.cmake index de8fd2d1f..5d9a24c1b 100644 --- a/cmake/catkin_libraries.cmake +++ b/cmake/catkin_libraries.cmake @@ -143,7 +143,7 @@ function(catkin_find_library_imported_location_library VAR LIB) list(APPEND imported_location_libnames ${imported_location_name}) endif() if(imported_location_libnames) - find_library(imported_location_library NAMES ${imported_location_libnames} HINTS ${imported_location_dir}) + find_library(imported_location_library NAMES ${imported_location_libnames} HINTS ${imported_location_dir} NO_CACHE) endif() set(${VAR} "${imported_location_library}" PARENT_SCOPE) endfunction()