aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-08-02 20:36:14 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-08-02 20:41:32 +0800
commit9d11557dc90bd519f0c7e2c134da90d9edb315e0 (patch)
tree7654467e76e3facbfb2c7d1421affbdec409cfb7
parentb89365282bb047756f1cc52587a60766a7fe2f02 (diff)
downloaddexon-solidity-9d11557dc90bd519f0c7e2c134da90d9edb315e0.tar.gz
dexon-solidity-9d11557dc90bd519f0c7e2c134da90d9edb315e0.tar.zst
dexon-solidity-9d11557dc90bd519f0c7e2c134da90d9edb315e0.zip
Define BOOST_TEST_DYN_LINK for building soltest if Boost_USE_STATIC_LIBS is not set.
-rw-r--r--test/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
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)