Skip to content

Commit 1ca8aeb

Browse files
committed
CMake: Clean up devcore dependencies
1 parent cdb0bbb commit 1ca8aeb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libdevcore/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ file(GLOB sources "*.cpp")
22
file(GLOB headers "*.h")
33

44
add_library(devcore ${sources} ${headers})
5-
target_link_libraries(devcore PRIVATE ${JSONCPP_LIBRARY} ${Boost_FILESYSTEM_LIBRARIES} ${Boost_REGEX_LIBRARIES} ${Boost_SYSTEM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
6-
target_include_directories(devcore SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
5+
target_link_libraries(devcore PRIVATE jsoncpp ${Boost_FILESYSTEM_LIBRARIES} ${Boost_REGEX_LIBRARIES} ${Boost_SYSTEM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
76
target_include_directories(devcore PUBLIC "${CMAKE_SOURCE_DIR}")
8-
target_include_directories(devcore PUBLIC "${JSONCPP_INCLUDE_DIR}")
9-
add_dependencies(devcore jsoncpp)
7+
target_include_directories(devcore SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
108
add_dependencies(devcore solidity_BuildInfo.h)

0 commit comments

Comments
 (0)