Merge pull request #513 from flikka/use-dyn-boost-check-once

Only look for BOOST´s unit test framework module if not already found. Sync version requirement.

This resolves #509.
This commit is contained in:
Bård Skaflestad 2014-03-11 19:16:04 +01:00
commit baf4294e8b

View File

@ -1,5 +1,6 @@
# be sure that this component is searched for
find_package (Boost COMPONENTS unit_test_framework QUIET)
if (NOT ${Boost_UNIT_TEST_FRAMEWORK_FOUND})
find_package (Boost 1.44.0 COMPONENTS unit_test_framework QUIET)
endif ()
if (${Boost_UNIT_TEST_FRAMEWORK_FOUND})
# setup to do a test compile