comparison Resources/LinuxStandardBaseToolchain.cmake @ 561:ded40a9e8cc8 laaw

patches for lsb
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 23 Sep 2013 17:52:38 +0200
parents a1b9d1e1497b
children 862d943115f9
comparison
equal deleted inserted replaced
558:6b9d09cc9e9d 561:ded40a9e8cc8
9 9
10 message("Using the following Linux Standard Base: ${LSB_PATH}") 10 message("Using the following Linux Standard Base: ${LSB_PATH}")
11 11
12 IF (EXISTS ${LSB_PATH}/lib64) 12 IF (EXISTS ${LSB_PATH}/lib64)
13 SET(LSB_TARGET_PROCESSOR "x86_64") 13 SET(LSB_TARGET_PROCESSOR "x86_64")
14 SET(LSB_LIBPATH ${LSB_PATH}/lib64-${LSB_TARGET_VERSION})
14 ELSEIF (EXISTS ${LSB_PATH}/lib) 15 ELSEIF (EXISTS ${LSB_PATH}/lib)
15 SET(LSB_TARGET_PROCESSOR "x86") 16 SET(LSB_TARGET_PROCESSOR "x86")
17 SET(LSB_LIBPATH ${LSB_PATH}/lib-${LSB_TARGET_VERSION})
16 ELSE() 18 ELSE()
17 MESSAGE(FATAL_ERROR "Unable to detect the target processor architecture. Check the LSB_PATH environment variable.") 19 MESSAGE(FATAL_ERROR "Unable to detect the target processor architecture. Check the LSB_PATH environment variable.")
18 ENDIF() 20 ENDIF()
19 21
20 SET(LSB_CPPPATH ${LSB_PATH}/include) 22 SET(LSB_CPPPATH ${LSB_PATH}/include)
21 SET(LSB_LIBPATH ${LSB_PATH}/lib-${LSB_TARGET_VERSION})
22 SET(PKG_CONFIG_PATH ${LSB_LIBPATH}/pkgconfig/) 23 SET(PKG_CONFIG_PATH ${LSB_LIBPATH}/pkgconfig/)
23 24
24 # the name of the target operating system 25 # the name of the target operating system
25 SET(CMAKE_SYSTEM_NAME Linux) 26 SET(CMAKE_SYSTEM_NAME Linux)
26 SET(CMAKE_SYSTEM_VERSION LinuxStandardBase) 27 SET(CMAKE_SYSTEM_VERSION LinuxStandardBase)