Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 70f559ab authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

force to update the cache variable

parent da5f021a
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,7 @@ macro(FIND_PKGCONFIG_LIBRARIES_ABSOLUTE_PATH _prefix) ...@@ -46,6 +46,7 @@ macro(FIND_PKGCONFIG_LIBRARIES_ABSOLUTE_PATH _prefix)
message(FATAL_ERROR "Dependency of ${_prefix} '${_library}' NOT FOUND") message(FATAL_ERROR "Dependency of ${_prefix} '${_library}' NOT FOUND")
endif() endif()
unset(_library_path CACHE) unset(_library_path CACHE)
set (${_prefix}_LIBRARIES "${${_prefix}_LIBRARIES}" CACHE INTERNAL "" FORCE)
endforeach() endforeach()
set(${_prefix}_STATIC_LIBRARIES_COPY "${${_prefix}_STATIC_LIBRARIES}") set(${_prefix}_STATIC_LIBRARIES_COPY "${${_prefix}_STATIC_LIBRARIES}")
set(${_prefix}_STATIC_LIBRARIES "") set(${_prefix}_STATIC_LIBRARIES "")
...@@ -54,11 +55,12 @@ macro(FIND_PKGCONFIG_LIBRARIES_ABSOLUTE_PATH _prefix) ...@@ -54,11 +55,12 @@ macro(FIND_PKGCONFIG_LIBRARIES_ABSOLUTE_PATH _prefix)
find_library(_library_path NAMES ${_library} find_library(_library_path NAMES ${_library}
HINTS ${${_prefix}_STATIC_LIBDIR} ${${_prefix}_STATIC_LIBRARY_DIRS} ${_lib_env}) HINTS ${${_prefix}_STATIC_LIBDIR} ${${_prefix}_STATIC_LIBRARY_DIRS} ${_lib_env})
if (_library_path) if (_library_path)
list(APPEND ${_prefix}_STATIC_LIBRARIES ${_library_path}) list(APPEND ${_prefix}_STATIC_LIBRARIES ${_library_path})
else() else()
message(FATAL_ERROR "Dependency of ${_prefix} '${_library}' NOT FOUND") message(FATAL_ERROR "Dependency of ${_prefix} '${_library}' NOT FOUND")
endif() endif()
unset(_library_path CACHE) unset(_library_path CACHE)
set (${_prefix}_STATIC_LIBRARIES "${${_prefix}_STATIC_LIBRARIES}" CACHE INTERNAL "" FORCE)
endforeach() endforeach()
endmacro() endmacro()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment