Mercurial > hg > orthanc
diff Resources/CMake/GoogleLogConfiguration.cmake @ 561:ded40a9e8cc8 laaw
patches for lsb
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 23 Sep 2013 17:52:38 +0200 |
parents | 27d32fc6209a |
children | 701d748cf327 |
line wrap: on
line diff
--- a/Resources/CMake/GoogleLogConfiguration.cmake Mon Sep 23 17:19:52 2013 +0200 +++ b/Resources/CMake/GoogleLogConfiguration.cmake Mon Sep 23 17:52:38 2013 +0200 @@ -49,10 +49,18 @@ ) if (CMAKE_COMPILER_IS_GNUCXX) - execute_process( - COMMAND patch utilities.cc ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-utilities.diff - WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src - ) + if (${CMAKE_SYSTEM_VERSION} STREQUAL "LinuxStandardBase") + execute_process( + COMMAND patch utilities.cc ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-utilities-lsb.diff + WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src + ) + else() + execute_process( + COMMAND patch utilities.cc ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-utilities.diff + WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src + ) + endif() + execute_process( COMMAND patch port.h ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-port-h.diff WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src/windows @@ -64,10 +72,18 @@ endif() if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") - configure_file( - ${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleLogConfiguration.h - ${GOOGLE_LOG_SOURCES_DIR}/src/config.h - COPYONLY) + if (${CMAKE_SYSTEM_VERSION} STREQUAL "LinuxStandardBase") + # Install the specific configuration for LSB SDK + configure_file( + ${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleLogConfigurationLSB.h + ${GOOGLE_LOG_SOURCES_DIR}/src/config.h + COPYONLY) + else() + configure_file( + ${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleLogConfiguration.h + ${GOOGLE_LOG_SOURCES_DIR}/src/config.h + COPYONLY) + endif() set(GOOGLE_LOG_SOURCES ${GOOGLE_LOG_SOURCES_DIR}/src/demangle.cc