Skip to content

Commit

Permalink
Set BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS definition
Browse files Browse the repository at this point in the history
- Avoids overflow error when running under Valgrind
- Cf. https://bitbucket.org/ompl/ompl/issues/543
  • Loading branch information
wxmerkt committed Jul 14, 2019
1 parent 8f063fc commit f3ea819
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ if(MSVC)
endif(MSVC)
# Ensure dynamic linking with boost unit_test_framework
add_definitions(-DBOOST_TEST_DYN_LINK)
# Avoid valgrind error due to overflow error, cf. https://bitbucket.org/ompl/ompl/issues/543
add_definitions(-DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS)

set_package_properties(Boost PROPERTIES
URL "http://boost.org"
Expand Down

0 comments on commit f3ea819

Please sign in to comment.