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()