Browse Source

Fixed #988.

cl-refactor
Gav Wood 10 years ago
parent
commit
d2165828ff
  1. 4
      CMakeLists.txt
  2. 3
      test/CMakeLists.txt
  3. 4
      test/natspec.cpp

4
CMakeLists.txt

@ -43,6 +43,10 @@ function(configureProject)
if (EVMJIT) if (EVMJIT)
add_definitions(-DETH_EVMJIT) add_definitions(-DETH_EVMJIT)
endif() endif()
if (HEADLESS)
add_definitions(-DETH_HEADLESS)
endif()
endfunction() endfunction()

3
test/CMakeLists.txt

@ -21,9 +21,10 @@ target_link_libraries(testeth ethereum)
target_link_libraries(testeth ethcore) target_link_libraries(testeth ethcore)
target_link_libraries(testeth secp256k1) target_link_libraries(testeth secp256k1)
target_link_libraries(testeth solidity) target_link_libraries(testeth solidity)
if (NOT HEADLESS)
target_link_libraries(testeth webthree) target_link_libraries(testeth webthree)
target_link_libraries(testeth natspec) target_link_libraries(testeth natspec)
endif()
if (JSONRPC) if (JSONRPC)
target_link_libraries(testeth web3jsonrpc) target_link_libraries(testeth web3jsonrpc)
target_link_libraries(testeth ${JSON_RPC_CPP_CLIENT_LIBRARIES}) target_link_libraries(testeth ${JSON_RPC_CPP_CLIENT_LIBRARIES})

4
test/natspec.cpp

@ -19,6 +19,8 @@
* @date 2015 * @date 2015
*/ */
#if !ETH_HEADLESS
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <libdevcore/Log.h> #include <libdevcore/Log.h>
#include <libnatspec/NatspecExpressionEvaluator.h> #include <libnatspec/NatspecExpressionEvaluator.h>
@ -110,3 +112,5 @@ BOOST_AUTO_TEST_CASE(natspec_js_eval_error)
} }
BOOST_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_SUITE_END()
#endif

Loading…
Cancel
Save