build: split environment variables used to search for libraries

Fixes https://gitlab.com/nsnam/ns-3-dev/-/issues/673
This commit is contained in:
Gabriel Ferreira
2022-06-09 19:23:54 -03:00
parent d616b77129
commit 6db83e54bf

View File

@@ -1857,6 +1857,9 @@ function(find_external_library)
# directories
$ENV{PATH} # Search for libraries in PATH directories
)
# Split : separated entries from environment variables by replacing separators with ;
string(REPLACE ":" ";" library_search_paths "${library_search_paths}")
set(suffixes /build /lib /build/lib / /bin ${path_suffixes})
# For each of the library names in LIBRARY_NAMES or LIBRARY_NAME