Tolerate absence of BoostTestJamfile.cmake

This commit is contained in:
Peter Dimov
2019-12-23 04:02:13 +02:00
parent 44e6762642
commit 204ce510c0

View File

@ -2,6 +2,10 @@
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
include(BoostTestJamfile)
include(BoostTestJamfile OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST)
if(HAVE_BOOST_TEST)
boost_test_jamfile(FILE Jamfile.v2 LIBRARIES Boost::assert Boost::core)
endif()