Commit 7fbf5af9 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Fix usage of boost unit_test_framework

parent 15d0c884
......@@ -57,10 +57,6 @@ ENDIF(CMAKE_BUILD_TYPE MATCHES "DEBUG")
# Search for Boost.
# Boost.Test is used by the test suite.
SET(BOOST_COMPONENTS_LIB thread)
SET(BOOST_COMPONENTS ${BOOST_COMPONENTS_LIB})
IF(BUILD_TESTING)
SET(BOOST_COMPONENTS ${BOOST_COMPONENTS_LIB} unit_test_framework)
ENDIF()
SEARCH_FOR_BOOST()
# Search for dependecies.
......
......@@ -15,6 +15,9 @@
# You should have received a copy of the GNU Lesser General Public License
# along with hpp-pinocchio. If not, see <http://www.gnu.org/licenses/>.
SET(BOOST_COMPONENTS ${BOOST_COMPONENTS_LIB} unit_test_framework)
SEARCH_FOR_BOOST()
# Make Boost.Test generates the main function in test cases.
ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK -DBOOST_TEST_MAIN)
......
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