From 9c86af41e154d14f543fc22f928caf2bf10ebb69 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 20 May 2007 09:55:34 +0000 Subject: [PATCH] From Lugi Calori, added control of lib postfix. --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b6e0dd509..80e3aeb15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,13 +179,16 @@ ENDIF("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") SET(CMAKE_DEBUG_POSTFIX "d") -SET(LIB_POSTFIX "") IF(UNIX AND NOT WIN32 AND NOT APPLE) IF(CMAKE_SIZEOF_VOID_P MATCHES "8") - SET(LIB_POSTFIX "64") + SET(LIB_POSTFIX "64" CACHE STRING "suffix for 32/64 dir placement") + MARK_AS_ADVANCED(LIB_POSTFIX) ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8") ENDIF(UNIX AND NOT WIN32 AND NOT APPLE) - +IF(NOT DEFINED LIB_POSTFIX) + SET(LIB_POSTFIX "") +ENDIF(NOT DEFINED LIB_POSTFIX) + #SET(OUTPUT_BINDIR ${PROJECT_BINARY_DIR}/bin/${CMAKE_SYSTEM_NAME}) SET(OUTPUT_BINDIR ${PROJECT_BINARY_DIR}/bin) MAKE_DIRECTORY(${OUTPUT_BINDIR})