Skip to content

Conversation

@chfast
Copy link
Contributor

@chfast chfast commented Apr 16, 2018

Fixes #3883.

@chfast
Copy link
Contributor Author

chfast commented Apr 16, 2018

Can you test this with libjsoncpp-dev installed in your system?

@chriseth chriseth merged commit 8be19ad into develop Apr 16, 2018
@chfast chfast deleted the cmake-cleanups branch April 16, 2018 12:01
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_include_directories(devcore SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
target_link_libraries(devcore PRIVATE jsoncpp ${Boost_FILESYSTEM_LIBRARIES} ${Boost_REGEX_LIBRARIES} ${Boost_SYSTEM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chfast isn't this interfering with cmake/jsoncpp.cmake? That defines ${JSONCPP_LIBRARY} which isn't used anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah... Might be good to add it back because I'm not sure what the order will be without it.

Can you try adding

target_include_directories(devcore SYSTEM BEFORE PUBLIC ${JSONCPP_INCLUDE_DIR})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants