Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
morse_cmake
Commits
70f559ab
Commit
70f559ab
authored
Apr 09, 2018
by
PRUVOST Florent
Browse files
force to update the cache variable
parent
da5f021a
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/FindPkgconfigLibrariesAbsolutePath.cmake
View file @
70f559ab
...
...
@@ -46,6 +46,7 @@ macro(FIND_PKGCONFIG_LIBRARIES_ABSOLUTE_PATH _prefix)
message
(
FATAL_ERROR
"Dependency of
${
_prefix
}
'
${
_library
}
' NOT FOUND"
)
endif
()
unset
(
_library_path CACHE
)
set
(
${
_prefix
}
_LIBRARIES
"
${${
_prefix
}
_LIBRARIES
}
"
CACHE INTERNAL
""
FORCE
)
endforeach
()
set
(
${
_prefix
}
_STATIC_LIBRARIES_COPY
"
${${
_prefix
}
_STATIC_LIBRARIES
}
"
)
set
(
${
_prefix
}
_STATIC_LIBRARIES
""
)
...
...
@@ -54,11 +55,12 @@ macro(FIND_PKGCONFIG_LIBRARIES_ABSOLUTE_PATH _prefix)
find_library
(
_library_path NAMES
${
_library
}
HINTS
${${
_prefix
}
_STATIC_LIBDIR
}
${${
_prefix
}
_STATIC_LIBRARY_DIRS
}
${
_lib_env
}
)
if
(
_library_path
)
list
(
APPEND
${
_prefix
}
_STATIC_LIBRARIES
${
_library_path
}
)
list
(
APPEND
${
_prefix
}
_STATIC_LIBRARIES
${
_library_path
}
)
else
()
message
(
FATAL_ERROR
"Dependency of
${
_prefix
}
'
${
_library
}
' NOT FOUND"
)
endif
()
unset
(
_library_path CACHE
)
set
(
${
_prefix
}
_STATIC_LIBRARIES
"
${${
_prefix
}
_STATIC_LIBRARIES
}
"
CACHE INTERNAL
""
FORCE
)
endforeach
()
endmacro
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment