cmake: add lib suffix

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/13/head
Thorsten Liebig 2015-09-25 20:22:47 +02:00
parent 5cce4185df
commit 03dcf7e967
1 changed files with 5 additions and 5 deletions

View File

@ -37,13 +37,13 @@ ADD_DEFINITIONS(-DGIT_VERSION=\"${VERSION}\")
option(ENABLE_RPATH "Enable rpath support on Linux and Mac" ON) option(ENABLE_RPATH "Enable rpath support on Linux and Mac" ON)
if(NOT CMAKE_INSTALL_RPATH) if(NOT CMAKE_INSTALL_RPATH)
# the RPATH to be used when installing, but only if it's not a system directory # the RPATH to be used when installing, but only if it's not a system directory
LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir) LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" isSystemDir)
IF("${isSystemDir}" STREQUAL "-1") IF("${isSystemDir}" STREQUAL "-1")
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
ENDIF("${isSystemDir}" STREQUAL "-1") ENDIF("${isSystemDir}" STREQUAL "-1")
endif() endif()
if(APPLE AND NOT CMAKE_INSTALL_NAME_DIR) if(APPLE AND NOT CMAKE_INSTALL_NAME_DIR)
set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
endif() endif()
if(UNIX AND ENABLE_RPATH) if(UNIX AND ENABLE_RPATH)
set(CMAKE_SKIP_BUILD_RPATH FALSE) set(CMAKE_SKIP_BUILD_RPATH FALSE)
@ -59,7 +59,7 @@ SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${openEMS_SOURCE_DIR}/cmake/Modules/
# SET(FPARSER_ROOT_DIR ~/opt/openEMS) # SET(FPARSER_ROOT_DIR ~/opt/openEMS)
find_library(fparser_LIBRARIES find_library(fparser_LIBRARIES
NAMES fparser NAMES fparser
HINTS ${FPARSER_ROOT_DIR}/lib HINTS ${FPARSER_ROOT_DIR}/lib${LIB_SUFFIX}
NO_CMAKE_FIND_ROOT_PATH NO_CMAKE_FIND_ROOT_PATH
) )
message(STATUS "fparser: ${fparser_LIBRARIES}" ) message(STATUS "fparser: ${fparser_LIBRARIES}" )
@ -71,7 +71,7 @@ INCLUDE_DIRECTORIES( ${FPARSER_ROOT_DIR}/include )
# SET(CSXCAD_ROOT_DIR ~/opt/openEMS) # SET(CSXCAD_ROOT_DIR ~/opt/openEMS)
find_library(CSXCAD_LIBRARIES find_library(CSXCAD_LIBRARIES
NAMES CSXCAD NAMES CSXCAD
HINTS ${CSXCAD_ROOT_DIR}/lib HINTS ${CSXCAD_ROOT_DIR}/lib${LIB_SUFFIX}
NO_CMAKE_FIND_ROOT_PATH NO_CMAKE_FIND_ROOT_PATH
) )
message(STATUS "CSXCAD_LIBRARIES: ${CSXCAD_LIBRARIES}" ) message(STATUS "CSXCAD_LIBRARIES: ${CSXCAD_LIBRARIES}" )