Skip to content

Commit

Permalink
Revert "Fix isssue #398 Do not call INSTALL(EXPORT ...) when having n…
Browse files Browse the repository at this point in the history
…o targets but generates the Config.cmake file."

This reverts commit 5d602f8.
  • Loading branch information
gergondet committed Jun 9, 2020
1 parent e7ae669 commit 6a377f3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions package-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,9 @@ install(

# Config
# * <prefix>/lib/cmake/Foo/FooTargets.cmake
if(${TARGETS_EXPORT_NAME})
install(
install(
EXPORT "${TARGETS_EXPORT_NAME}"
NAMESPACE "${namespace}"
DESTINATION "${CONFIG_INSTALL_DIR}"
)
endif(${TARGETS_EXPORT_NAME})

)
ENDMACRO(SETUP_PROJECT_PACKAGE_FINALIZE)

0 comments on commit 6a377f3

Please sign in to comment.