Skip to content

Commit

Permalink
feat: upgrade glog to 0.6.0 (#3704)
Browse files Browse the repository at this point in the history
  • Loading branch information
dl239 authored Jan 23, 2024
1 parent ff7e8ac commit 3b473ab
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions third-party/cmake/FetchGlog.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set(GLOG_URL https://github.com/google/glog/archive/refs/tags/v0.4.0.tar.gz)
set(GLOG_URL https://github.com/google/glog/archive/refs/tags/v0.6.0.tar.gz)

message(STATUS "build glog from ${GLOG_URL}")

find_program(MAKE_EXE NAMES gmake nmake make)
ExternalProject_Add(
glog
URL ${GLOG_URL}
URL_HASH SHA256=f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c
URL_HASH SHA256=8a83bf982f37bb70825df71a9709fa90ea9f4447fb3c099e1d720a439d88bad6
PREFIX ${DEPS_BUILD_DIR}
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/glog
INSTALL_DIR ${DEPS_INSTALL_DIR}
DEPENDS gflags
BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND
./autogen.sh
COMMAND CXXFLAGS=-fPIC ./configure --prefix=<INSTALL_DIR> --enable-shared=no --with-gflags=<INSTALL_DIR>
BUILD_COMMAND ${MAKE_EXE}
INSTALL_COMMAND ${MAKE_EXE} install)
CONFIGURE_COMMAND ${CMAKE_COMMAND} -H<SOURCE_DIR> -B <BINARY_DIR> -DCMAKE_CXX_FLAGS=-fPIC
-DBUILD_SHARED_LIBS=OFF -DCMAKE_PREFIX_PATH=<INSTALL_DIR> -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
BUILD_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> -- ${MAKEOPTS}
INSTALL_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> --target install)

0 comments on commit 3b473ab

Please sign in to comment.