From 9d11557dc90bd519f0c7e2c134da90d9edb315e0 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Thu, 2 Aug 2018 14:36:14 +0200 Subject: Define BOOST_TEST_DYN_LINK for building soltest if Boost_USE_STATIC_LIBS is not set. --- test/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 522856cc..701d53e5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -24,4 +24,8 @@ add_executable(soltest ${sources} ${headers} ) target_link_libraries(soltest PRIVATE libsolc solidity lll evmasm devcore ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES}) +if (NOT Boost_USE_STATIC_LIBS) + target_compile_definitions(soltest PUBLIC -DBOOST_TEST_DYN_LINK) +endif() + add_subdirectory(tools) -- cgit v1.2.3