Skip to content

Commit 56bcbb1

Browse files
authored
Merge pull request #40 from lanl/mauneyc/fix/remove_export_package
removed `export(PACKAGE)`
2 parents bda0f55 + b3b610c commit 56bcbb1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,5 +218,11 @@ else()
218218
# NOTE: This config will not be relocatable!
219219
export(TARGETS ${SPLIB} NAMESPACE ${SPLIB}::
220220
FILE "${CMAKE_CURRENT_BINARY_DIR}/${SPLIB}Targets.cmake")
221-
export(PACKAGE ${SPLIB})
221+
# see https://cmake.org/cmake/help/latest/policy/CMP0090.html
222+
# since v3.15, this command is a no-op. prior, it populates
223+
# the user package directory.
224+
# `spiner` is commonly used "in-tree" downstream, so this
225+
# *may* confuse downstream builds that still search the
226+
# `~/.cmake` when doing `find_package()`
227+
# export(PACKAGE ${SPLIB})
222228
endif()

0 commit comments

Comments
 (0)