diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-11-09 01:37:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-11-09 01:37:32 (GMT) |
commit | 2696f7e0ea694d637ad20a210842849ba238e9a0 (patch) | |
tree | 245a469471857e3b65391cafff8589e22624bd2a /Modules/InstallRequiredSystemLibraries.cmake | |
parent | 3cd1d6e9e1d34d59100c9992602ba45958f1824e (diff) | |
download | CMake-2696f7e0ea694d637ad20a210842849ba238e9a0.zip CMake-2696f7e0ea694d637ad20a210842849ba238e9a0.tar.gz CMake-2696f7e0ea694d637ad20a210842849ba238e9a0.tar.bz2 |
ENH: add ability to use your own install directories
Diffstat (limited to 'Modules/InstallRequiredSystemLibraries.cmake')
-rw-r--r-- | Modules/InstallRequiredSystemLibraries.cmake | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Modules/InstallRequiredSystemLibraries.cmake b/Modules/InstallRequiredSystemLibraries.cmake index 4e4dbd3..ceac50c 100644 --- a/Modules/InstallRequiredSystemLibraries.cmake +++ b/Modules/InstallRequiredSystemLibraries.cmake @@ -1,6 +1,10 @@ # By including this file, all files in the CMAKE_INSTALL_DEBUG_LIBRARIES, # will be installed with INSTALL_PROGRAMS into /bin for WIN32 and /lib -# for non-win32. If it is the MSVC compiler, then the microsoft run +# for non-win32. If CMAKE_SKIP_INSTALL_RULES is set to TRUE before including +# this file, then the INSTALL command is not called. The use can use +# the variable CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS to use a custom install +# command and install them into any directory they want. +# If it is the MSVC compiler, then the microsoft run # time libraries will be found add automatically added to the # CMAKE_INSTALL_DEBUG_LIBRARIES, and installed. # If CMAKE_INSTALL_DEBUG_LIBRARIES is set and it is the MSVC @@ -118,11 +122,13 @@ ENDIF(MSVC) # Include system runtime libraries in the installation if any are # specified by CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS. IF(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS) - IF(WIN32) - INSTALL_PROGRAMS(/bin ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}) - ELSE(WIN32) - INSTALL_PROGRAMS(/lib ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}) - ENDIF(WIN32) + IF(NOT CMAKE_SKIP_INSTALL_RULES) + IF(WIN32) + INSTALL_PROGRAMS(/bin ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}) + ELSE(WIN32) + INSTALL_PROGRAMS(/lib ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}) + ENDIF(WIN32) + ENDIF(NOT CMAKE_SKIP_INSTALL_RULES) ENDIF(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS) |