Skip to content

Commit

Permalink
Fix pugixml+export.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenhater committed Apr 12, 2024
1 parent 4561500 commit 218ee5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include(CheckIPOSupported)

# Make CUDA support throw errors if architectures remain unclear
cmake_policy(SET CMP0104 NEW)
cmake_policy(SET CMP0148 NEW)

set(CPM_USE_LOCAL_PACKAGES ON)
include(cmake/CPM.cmake)
Expand Down Expand Up @@ -313,6 +314,7 @@ else()
find_package(pugixml REQUIRED)
target_link_libraries(ext-pugixml INTERFACE pugixml::pugixml)
endif()
install(TARGETS ext-pugixml EXPORT arbor-targets)

CPMAddPackage(NAME fmt
GITHUB_REPOSITORY fmtlib/fmt
Expand Down
2 changes: 1 addition & 1 deletion arborio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(arborio-sources

add_library(arborio ${arborio-sources})

target_link_libraries(arborio PUBLIC pugixml::pugixml)
target_link_libraries(arborio PUBLIC ext-pugixml)
add_library(arborio-public-headers INTERFACE)
add_library(arborio-private-headers INTERFACE)

Expand Down

0 comments on commit 218ee5f

Please sign in to comment.