comparison 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
comparison
equal deleted inserted replaced
558:6b9d09cc9e9d 561:ded40a9e8cc8
47 include_directories( 47 include_directories(
48 ${GOOGLE_LOG_SOURCES_DIR}/src 48 ${GOOGLE_LOG_SOURCES_DIR}/src
49 ) 49 )
50 50
51 if (CMAKE_COMPILER_IS_GNUCXX) 51 if (CMAKE_COMPILER_IS_GNUCXX)
52 execute_process( 52 if (${CMAKE_SYSTEM_VERSION} STREQUAL "LinuxStandardBase")
53 COMMAND patch utilities.cc ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-utilities.diff 53 execute_process(
54 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src 54 COMMAND patch utilities.cc ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-utilities-lsb.diff
55 ) 55 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src
56 )
57 else()
58 execute_process(
59 COMMAND patch utilities.cc ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-utilities.diff
60 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src
61 )
62 endif()
63
56 execute_process( 64 execute_process(
57 COMMAND patch port.h ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-port-h.diff 65 COMMAND patch port.h ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-port-h.diff
58 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src/windows 66 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src/windows
59 ) 67 )
60 execute_process( 68 execute_process(
62 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src/windows 70 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src/windows
63 ) 71 )
64 endif() 72 endif()
65 73
66 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") 74 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
67 configure_file( 75 if (${CMAKE_SYSTEM_VERSION} STREQUAL "LinuxStandardBase")
68 ${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleLogConfiguration.h 76 # Install the specific configuration for LSB SDK
69 ${GOOGLE_LOG_SOURCES_DIR}/src/config.h 77 configure_file(
70 COPYONLY) 78 ${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleLogConfigurationLSB.h
79 ${GOOGLE_LOG_SOURCES_DIR}/src/config.h
80 COPYONLY)
81 else()
82 configure_file(
83 ${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleLogConfiguration.h
84 ${GOOGLE_LOG_SOURCES_DIR}/src/config.h
85 COPYONLY)
86 endif()
71 87
72 set(GOOGLE_LOG_SOURCES 88 set(GOOGLE_LOG_SOURCES
73 ${GOOGLE_LOG_SOURCES_DIR}/src/demangle.cc 89 ${GOOGLE_LOG_SOURCES_DIR}/src/demangle.cc
74 ${GOOGLE_LOG_SOURCES_DIR}/src/logging.cc 90 ${GOOGLE_LOG_SOURCES_DIR}/src/logging.cc
75 ${GOOGLE_LOG_SOURCES_DIR}/src/raw_logging.cc 91 ${GOOGLE_LOG_SOURCES_DIR}/src/raw_logging.cc