Skip to content

Commit

Permalink
Add a comment why we can't load targets multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 4, 2019
1 parent 070c5d5 commit 67665eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/ArrowConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ set(PLASMA_STORE_SERVER "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/plasma-st

include("${CMAKE_CURRENT_LIST_DIR}/ArrowOptions.cmake")

# Load targets only once. If we load targets multiple times, CMake reports
# already existent target error.
if(NOT (TARGET arrow_shared OR TARGET arrow_static))
include("${CMAKE_CURRENT_LIST_DIR}/ArrowTargets.cmake")
endif()

0 comments on commit 67665eb

Please sign in to comment.