Commit a2dbfb89 authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Remove system directories from the binary_path (CORALCOOL-2926 on Mac 10.11)


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@20105 4525493e-7705-40b1-a816-d608a930855b
parent 84663c02
......@@ -154,16 +154,27 @@ function(_env_package pack output)
endforeach()
set(library_path ${library_path} ${library_path2})
# Remove system libraries from the library_path
#list(REMOVE_ITEM library_path /usr/lib /lib /usr/lib64 /lib64 /usr/lib32 /lib32)
# Remove system directories from the library_path
###set(library_path ${library_path} /lib /lib32 /lib64 /usr/lib /usr/lib32 /usr/lib64 /usr/local/lib /usr/local/lib32 /usr/local/lib64) # FOR DEBUGGING ONLY
set(old_library_path ${library_path})
set(library_path)
foreach(d ${old_library_path})
if(NOT d MATCHES "^(/usr|/usr/local)?/lib(32/64)?")
if(NOT d MATCHES "^(/usr|/usr/local)?/lib(32|64)?")
set(library_path ${library_path} ${d})
endif()
endforeach()
# Remove system directories from the binary_path (CORALCOOL-2926 on Mac 10.11)
###set(binary_path ${binary_path} /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin) # FOR DEBUGGING ONLY
set(old_binary_path ${binary_path})
set(binary_path)
foreach(d ${old_binary_path})
if(NOT d MATCHES "^(/usr|/usr/local)?/(s)?bin")
set(binary_path ${binary_path} ${d})
endif()
endforeach()
foreach(var library_path python_path binary_path)
if(${var})
list(REMOVE_DUPLICATES ${var})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment