Skip to content

Commit

Permalink
Fix target linking
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed Jul 29, 2024
1 parent 9fca533 commit e4250dd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions xacc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ if(LIBUNWIND_FOUND)
target_link_libraries(xacc
PRIVATE
${LIBUNWIND_LIBRARIES} ${LIBUNWINDX86_LIBRARIES}
PUBLIC
spdlog::spdlog
)
endif()

Expand All @@ -87,9 +85,13 @@ target_include_directories(xacc
${CMAKE_SOURCE_DIR}/tpls/mpark-variant
${NLOHMANN_INCLUDE_DIR}
)
target_link_libraries(xacc PUBLIC CppMicroServices)
target_link_libraries(xacc PRIVATE cpr::cpr)

target_link_libraries(xacc
PUBLIC
CppMicroServices
spdlog::spdlog
PRIVATE
cpr::cpr
)

# linking against MPI libraries found by cmake
if(MPI_FOUND)
Expand Down

0 comments on commit e4250dd

Please sign in to comment.