Merge pull request #310 from andlaus/allow-nolib

Build system: make it work for modules which do not need libraries
This commit is contained in:
Bård Skaflestad 2013-08-07 08:12:47 -07:00
commit 8e63169073

View File

@ -91,7 +91,7 @@ find_and_append_package_list_to (${project} ${${project}_DEPS})
# remove the dependency on the testing framework from the main library;
# it is not possible to query for Boost twice with different components.
list (REMOVE_ITEM ${project}_LIBRARIES ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})
list (REMOVE_ITEM "${project}_LIBRARIES" "${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}")
# don't import more libraries than we need to
include (UseOnlyNeeded)