From 55e2f294ac5c4b65b739f0d2b6bf43f7b8bf9da7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 6 Jun 2008 18:39:18 -0700 Subject: Allow for overriding the default lib destination with LIB_INSTALL_DIR So 64-bit builds can be optionally redirected to lib64 --- CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5eb5c5c4..810f61e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,9 @@ SET(LIB_MAJOR_VERSION "1") SET(LIB_MINOR_VERSION "4") SET(LIB_BUILD_VERSION "272") SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_BUILD_VERSION}") +IF(NOT DEFINED LIB_INSTALL_DIR) + SET(LIB_INSTALL_DIR "lib") +ENDIF(NOT DEFINED LIB_INSTALL_DIR) CHECK_TYPE_SIZE("long" SIZEOF_LONG) @@ -309,8 +312,8 @@ TARGET_LINK_LIBRARIES(${LIBNAME} ${EXTRA_LIBS}) # Add an install target here INSTALL(TARGETS ${LIBNAME} RUNTIME DESTINATION bin - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib + LIBRARY DESTINATION ${LIB_INSTALL_DIR} + ARCHIVE DESTINATION ${LIB_INSTALL_DIR} ) INSTALL(FILES include/AL/al.h include/AL/alc.h @@ -323,8 +326,8 @@ IF(EXAMPLES) TARGET_LINK_LIBRARIES(openal-info ${LIBNAME}) INSTALL(TARGETS openal-info RUNTIME DESTINATION bin - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib + LIBRARY DESTINATION ${LIB_INSTALL_DIR} + ARCHIVE DESTINATION ${LIB_INSTALL_DIR} ) ENDIF() -- cgit v1.2.3