In panda config, unset libraries we're not using so that they're not used as link targets.

This commit is contained in:
kestred 2014-01-30 06:21:50 -07:00
parent 8d3e7541ef
commit 995688760b

View File

@ -73,6 +73,10 @@ function(package_option name)
# Create the option. # Create the option.
option("HAVE_${name}" "${cache_string}" "${default}") option("HAVE_${name}" "${cache_string}" "${default}")
if(NOT HAVE_${name})
unset(${name}_LIBRARY)
unset(${name}_LIBRARIES)
endif()
endfunction() endfunction()
# #