build: split environment variables used to search for libraries
Fixes https://gitlab.com/nsnam/ns-3-dev/-/issues/673
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user