From 2696f7e0ea694d637ad20a210842849ba238e9a0 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 8 Nov 2007 20:37:32 -0500 Subject: ENH: add ability to use your own install directories --- Modules/InstallRequiredSystemLibraries.cmake | 18 ++++++++++++------ 1 file 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) -- cgit v0.12