mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #3888 from ethereum/cmake-cleanups
CMake dependencies cleanups
This commit is contained in:
commit
8be19ad72b
@ -34,13 +34,6 @@ endif()
|
|||||||
set(ETH_CMAKE_DIR ${CMAKE_CURRENT_LIST_DIR})
|
set(ETH_CMAKE_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||||
set(ETH_SCRIPTS_DIR ${ETH_CMAKE_DIR}/scripts)
|
set(ETH_SCRIPTS_DIR ${ETH_CMAKE_DIR}/scripts)
|
||||||
|
|
||||||
find_program(CTEST_COMMAND ctest)
|
|
||||||
|
|
||||||
#message(STATUS "CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH}")
|
|
||||||
#message(STATUS "CMake Helper Path: ${ETH_CMAKE_DIR}")
|
|
||||||
#message(STATUS "CMake Script Path: ${ETH_SCRIPTS_DIR}")
|
|
||||||
#message(STATUS "ctest path: ${CTEST_COMMAND}")
|
|
||||||
|
|
||||||
## use multithreaded boost libraries, with -mt suffix
|
## use multithreaded boost libraries, with -mt suffix
|
||||||
set(Boost_USE_MULTITHREADED ON)
|
set(Boost_USE_MULTITHREADED ON)
|
||||||
option(Boost_USE_STATIC_LIBS "Link Boost statically" ON)
|
option(Boost_USE_STATIC_LIBS "Link Boost statically" ON)
|
||||||
|
@ -2,9 +2,7 @@ file(GLOB sources "*.cpp")
|
|||||||
file(GLOB headers "*.h")
|
file(GLOB headers "*.h")
|
||||||
|
|
||||||
add_library(devcore ${sources} ${headers})
|
add_library(devcore ${sources} ${headers})
|
||||||
target_link_libraries(devcore PRIVATE ${JSONCPP_LIBRARY} ${Boost_FILESYSTEM_LIBRARIES} ${Boost_REGEX_LIBRARIES} ${Boost_SYSTEM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
target_link_libraries(devcore PRIVATE jsoncpp ${Boost_FILESYSTEM_LIBRARIES} ${Boost_REGEX_LIBRARIES} ${Boost_SYSTEM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
||||||
target_include_directories(devcore SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
|
|
||||||
target_include_directories(devcore PUBLIC "${CMAKE_SOURCE_DIR}")
|
target_include_directories(devcore PUBLIC "${CMAKE_SOURCE_DIR}")
|
||||||
target_include_directories(devcore PUBLIC "${JSONCPP_INCLUDE_DIR}")
|
target_include_directories(devcore SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
|
||||||
add_dependencies(devcore jsoncpp)
|
|
||||||
add_dependencies(devcore solidity_BuildInfo.h)
|
add_dependencies(devcore solidity_BuildInfo.h)
|
||||||
|
Loading…
Reference in New Issue
Block a user