comparison Resources/CMake/GoogleLogConfiguration.cmake @ 870:f4f5ab513157 jpeg

fix static builds
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 11 Jun 2014 09:13:22 +0200
parents e8e59e80868c
children 816dccaeb7cf
comparison
equal deleted inserted replaced
867:ea246626b96c 870:f4f5ab513157
128 128
129 if (${CMAKE_COMPILER_IS_GNUCXX}) 129 if (${CMAKE_COMPILER_IS_GNUCXX})
130 # This is a patch for MinGW64 130 # This is a patch for MinGW64
131 add_definitions(-D_TIME_H__S=1) 131 add_definitions(-D_TIME_H__S=1)
132 endif() 132 endif()
133
134 endif() 133 endif()
135
136
137 134
138 add_library(GoogleLog STATIC ${GOOGLE_LOG_SOURCES}) 135 add_library(GoogleLog STATIC ${GOOGLE_LOG_SOURCES})
139 link_libraries(GoogleLog) 136 set(STATIC_GOOGLE_LOG GoogleLog)
140 137
141 else() 138 else()
142 CHECK_INCLUDE_FILE_CXX(glog/logging.h HAVE_GOOGLE_LOG_H) 139 CHECK_INCLUDE_FILE_CXX(glog/logging.h HAVE_GOOGLE_LOG_H)
143 if (NOT HAVE_GOOGLE_LOG_H) 140 if (NOT HAVE_GOOGLE_LOG_H)
144 message(FATAL_ERROR "Please install the libgoogle-glog-dev package") 141 message(FATAL_ERROR "Please install the libgoogle-glog-dev package")