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 authored Jun 9, 2020
1 parent e7ae669 commit e3c38fa
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 e3c38fa

Please sign in to comment.