Define BOOST_TEST_DYN_LINK for building soltest if Boost_USE_STATIC_LIBS is not set.

This commit is contained in:
Daniel Kirchner 2018-08-02 14:36:14 +02:00
parent b89365282b
commit 9d11557dc9

View File

@ -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)