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

Do not set the env for a package if that package was not found.

This is not strictly necessary, but should not harm (eg tcmalloc on mac?).


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@19776 4525493e-7705-40b1-a816-d608a930855b
parent 8ff14625
......@@ -25,7 +25,10 @@ include(CORALEnvironmentHandling)
# coral_env_for_package(package)
function(coral_env_for_package _pkg)
find_package(${_pkg})
coral_build_and_release_env(PACKAGE ${_pkg})
string(TOUPPER ${_pkg} _pkg_upper)
if(${_pkg_upper}_FOUND)
coral_build_and_release_env(PACKAGE ${_pkg})
endif()
endfunction()
# Basic dependencies as in CoolKernel
......
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