Skip to content
Snippets Groups Projects
Commit d89fd6cc authored by Brad King's avatar Brad King
Browse files

KWSys: Associate installed library with an EXPORT

A parent project may now set KWSYS_INSTALL_EXPORT_NAME to specify the
EXPORT name for install(TARGETS) commands.
parent d46aded3
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,8 @@ ...@@ -61,6 +61,8 @@
# If not given the install rules # If not given the install rules
# will not be in any component. # will not be in any component.
# #
# KWSYS_INSTALL_EXPORT_NAME = The EXPORT option value for install(TARGETS) calls.
#
# Example: # Example:
# #
# SET(KWSYS_INSTALL_BIN_DIR bin) # SET(KWSYS_INSTALL_BIN_DIR bin)
...@@ -235,6 +237,9 @@ IF(COMMAND INSTALL) ...@@ -235,6 +237,9 @@ IF(COMMAND INSTALL)
# Setup library install rules. # Setup library install rules.
SET(KWSYS_INSTALL_LIBRARY_RULE) SET(KWSYS_INSTALL_LIBRARY_RULE)
IF(KWSYS_INSTALL_EXPORT_NAME)
LIST(APPEND KWSYS_INSTALL_LIBRARY_RULE EXPORT ${KWSYS_INSTALL_EXPORT_NAME})
ENDIF()
IF(KWSYS_INSTALL_LIB_DIR) IF(KWSYS_INSTALL_LIB_DIR)
# Install the shared library to the lib directory. # Install the shared library to the lib directory.
SET(KWSYS_INSTALL_LIBRARY_RULE ${KWSYS_INSTALL_LIBRARY_RULE} SET(KWSYS_INSTALL_LIBRARY_RULE ${KWSYS_INSTALL_LIBRARY_RULE}
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
SET(KWSYS_DATE_STAMP_YEAR 2010) SET(KWSYS_DATE_STAMP_YEAR 2010)
# KWSys version date month component. Format is MM. # KWSys version date month component. Format is MM.
SET(KWSYS_DATE_STAMP_MONTH 11) SET(KWSYS_DATE_STAMP_MONTH 12)
# KWSys version date day component. Format is DD. # KWSys version date day component. Format is DD.
SET(KWSYS_DATE_STAMP_DAY 09) SET(KWSYS_DATE_STAMP_DAY 01)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment