diff options
author | Brad King <brad.king@kitware.com> | 2010-12-14 18:20:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-12-14 18:30:03 (GMT) |
commit | ffac70b52848d369a08bd972fbf8a022c38ca86e (patch) | |
tree | 2bdb72a871befb486a8f378ab6a175256becefa7 | |
parent | da0a8f7f448a6ebbf39f50199f661b63a1cdc261 (diff) | |
download | CMake-ffac70b52848d369a08bd972fbf8a022c38ca86e.zip CMake-ffac70b52848d369a08bd972fbf8a022c38ca86e.tar.gz CMake-ffac70b52848d369a08bd972fbf8a022c38ca86e.tar.bz2 |
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.
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 18cae43..a35a01f 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -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} |