CMake: Use the right target for jsoncpp.
This commit is contained in:
parent
2bfd4ee4eb
commit
b35e298eea
|
@ -31,7 +31,7 @@ file(GLOB sources *.cpp)
|
||||||
add_executable(mastorss ${sources})
|
add_executable(mastorss ${sources})
|
||||||
target_link_libraries(mastorss
|
target_link_libraries(mastorss
|
||||||
PRIVATE
|
PRIVATE
|
||||||
jsoncpp restclient-cpp mastodon-cpp::mastodon-cpp
|
jsoncpp_lib restclient-cpp mastodon-cpp::mastodon-cpp
|
||||||
Boost::filesystem Boost::log Boost::regex)
|
Boost::filesystem Boost::log Boost::regex)
|
||||||
if(BUILD_SHARED_LIBS)
|
if(BUILD_SHARED_LIBS)
|
||||||
target_compile_definitions(mastorss PRIVATE "BOOST_ALL_DYN_LINK=1")
|
target_compile_definitions(mastorss PRIVATE "BOOST_ALL_DYN_LINK=1")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user