Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rejiggered 64-bit architecture detection: added the CMake option LIB_…

…SUFFIX to override lib/lib64 installation path autodetection. Specifying LIB_SUFFIX 'foo' will cause libraries to be installed to install_prefix/libfoo/
  • Loading branch information...
commit a3459293a333040a95916ad510137e64aaa3df90 1 parent dae6f56
Rich Mattes authored committed
Showing with 5 additions and 4 deletions.
  1. +5 −4 cmake/internal/FindOS.cmake
View
9 cmake/internal/FindOS.cmake
@@ -61,12 +61,13 @@ ENDIF (PROJECT_OS_LINUX)
IF(PROJECT_PROC_64BIT)
# Set the install path to lib64
- SET(PROJECT_LIB_DIR "lib64")
- SET(PROJECT_PLUGIN_DIR "lib64/${PROJECT_NAME}-${APIVERSION}")
+ SET(LIB_SUFFIX "64" CACHE STRING "Suffix for installation library directory")
ELSE (PROJECT_PROC_64BIT)
- SET(PROJECT_LIB_DIR "lib")
- SET(PROJECT_PLUGIN_DIR "lib/${PROJECT_NAME}-${APIVERSION}")
+ SET(LIB_SUFFIX "" CACHE STRING "Suffix for installation library directory")
ENDIF (PROJECT_PROC_64BIT)
+
+SET(PROJECT_LIB_DIR "lib${LIB_SUFFIX}")
+SET(PROJECT_PLUGIN_DIR "lib${LIB_SUFFIX}/${PROJECT_NAME}-${APIVERSION}")
MESSAGE(STATUS "Installing Libraries to ${CMAKE_INSTALL_PREFIX}/${PROJECT_LIB_DIR}")
MESSAGE(STATUS "Installing Plugins to ${CMAKE_INSTALL_PREFIX}/${PROJECT_PLUGIN_DIR}")
Please sign in to comment.
Something went wrong with that request. Please try again.