mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-28 18:09:31 -06:00
KWSys: Use EXPORT name only if installing library
Do not set KWSYS_INSTALL_LIBRARY_RULE just because the parent project set KWSYS_INSTALL_EXPORT_NAME. Require KWSYS_INSTALL_LIB_DIR to be set too.
This commit is contained in:
@@ -237,10 +237,10 @@ IF(COMMAND INSTALL)
|
||||
|
||||
# Setup library install rules.
|
||||
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_EXPORT_NAME)
|
||||
LIST(APPEND KWSYS_INSTALL_LIBRARY_RULE EXPORT ${KWSYS_INSTALL_EXPORT_NAME})
|
||||
ENDIF()
|
||||
# Install the shared library to the lib directory.
|
||||
SET(KWSYS_INSTALL_LIBRARY_RULE ${KWSYS_INSTALL_LIBRARY_RULE}
|
||||
LIBRARY DESTINATION ${KWSYS_INSTALL_LIB_DIR}
|
||||
|
||||
Reference in New Issue
Block a user