mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-05-07 18:04:13 +00:00
A new home and version for glog
This commit is contained in:
parent
892295dd3a
commit
5dcc4d752c
@ -475,7 +475,7 @@ endif(NOT GFlags_FOUND)
|
|||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# glog - http://code.google.com/p/google-glog/
|
# glog - https://github.com/google/glog
|
||||||
################################################################################
|
################################################################################
|
||||||
if(NOT ${ENABLE_OWN_GLOG})
|
if(NOT ${ENABLE_OWN_GLOG})
|
||||||
find_package(GLOG)
|
find_package(GLOG)
|
||||||
@ -483,7 +483,7 @@ if(NOT ${ENABLE_OWN_GLOG})
|
|||||||
set(GLOG_FOUND ON)
|
set(GLOG_FOUND ON)
|
||||||
endif(GLOG_INCLUDE_DIRS)
|
endif(GLOG_INCLUDE_DIRS)
|
||||||
endif(NOT ${ENABLE_OWN_GLOG})
|
endif(NOT ${ENABLE_OWN_GLOG})
|
||||||
set(glog_RELEASE 0.3.3)
|
set(glog_RELEASE 0.3.4)
|
||||||
if (NOT GLOG_FOUND OR ${LOCAL_GFLAGS})
|
if (NOT GLOG_FOUND OR ${LOCAL_GFLAGS})
|
||||||
message (STATUS " glog library has not been found")
|
message (STATUS " glog library has not been found")
|
||||||
if(NOT GFlags_FOUND)
|
if(NOT GFlags_FOUND)
|
||||||
@ -495,8 +495,6 @@ if (NOT GLOG_FOUND OR ${LOCAL_GFLAGS})
|
|||||||
add_library(gflags-${gflags_RELEASE} UNKNOWN IMPORTED)
|
add_library(gflags-${gflags_RELEASE} UNKNOWN IMPORTED)
|
||||||
set_property(TARGET gflags-${gflags_RELEASE} PROPERTY IMPORTED_LOCATION "${GFlags_LIBS}")
|
set_property(TARGET gflags-${gflags_RELEASE} PROPERTY IMPORTED_LOCATION "${GFlags_LIBS}")
|
||||||
endif(NOT ${LOCAL_GFLAGS})
|
endif(NOT ${LOCAL_GFLAGS})
|
||||||
set(glog_RELEASE 0.3.3)
|
|
||||||
set(glog_MD5 "a6fd2c22f8996846e34c763422717c18")
|
|
||||||
|
|
||||||
if(${LOCAL_GFLAGS})
|
if(${LOCAL_GFLAGS})
|
||||||
set(TARGET_GFLAGS ${gflags})
|
set(TARGET_GFLAGS ${gflags})
|
||||||
@ -558,39 +556,23 @@ ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/glog/glog-${glog_RELEASE}/configure")
|
|||||||
endif(${LOCAL_GFLAGS})
|
endif(${LOCAL_GFLAGS})
|
||||||
|
|
||||||
set(GLOG_CONFIGURE ${CMAKE_CURRENT_BINARY_DIR}/glog-${glog_RELEASE}/configure_with_gflags)
|
set(GLOG_CONFIGURE ${CMAKE_CURRENT_BINARY_DIR}/glog-${glog_RELEASE}/configure_with_gflags)
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
|
||||||
ExternalProject_Add(
|
ExternalProject_Add(
|
||||||
glog-${glog_RELEASE}
|
glog-${glog_RELEASE}
|
||||||
DEPENDS ${TARGET_GFLAGS}
|
DEPENDS ${TARGET_GFLAGS}
|
||||||
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/glog-${glog_RELEASE}
|
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/glog-${glog_RELEASE}
|
||||||
SVN_REPOSITORY http://google-glog.googlecode.com/svn/trunk
|
GIT_REPOSITORY https://github.com/google/glog/
|
||||||
SVN_REVISION -r "142"
|
GIT_TAG v${glog_RELEASE}
|
||||||
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/download/glog-${glog_RELEASE}
|
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/download/glog-${glog_RELEASE}
|
||||||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/glog/glog-${glog_RELEASE}
|
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/glog/glog-${glog_RELEASE}
|
||||||
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/glog-${glog_RELEASE}
|
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/glog-${glog_RELEASE}
|
||||||
CONFIGURE_COMMAND ${GLOG_CONFIGURE} --prefix=<INSTALL_DIR>
|
CONFIGURE_COMMAND ${GLOG_CONFIGURE} --prefix=<INSTALL_DIR>
|
||||||
BUILD_COMMAND make
|
BUILD_COMMAND make
|
||||||
UPDATE_COMMAND ""
|
UPDATE_COMMAND ""
|
||||||
PATCH_COMMAND ""
|
PATCH_COMMAND ""
|
||||||
INSTALL_COMMAND ""
|
INSTALL_COMMAND ""
|
||||||
)
|
)
|
||||||
else("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
|
||||||
ExternalProject_Add(
|
|
||||||
glog-${glog_RELEASE}
|
|
||||||
DEPENDS ${TARGET_GFLAGS}
|
|
||||||
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/glog-${glog_RELEASE}
|
|
||||||
URL http://google-glog.googlecode.com/files/glog-${glog_RELEASE}.tar.gz
|
|
||||||
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/download/glog-${glog_RELEASE}
|
|
||||||
URL_MD5 ${glog_MD5}
|
|
||||||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/glog/glog-${glog_RELEASE}
|
|
||||||
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/glog-${glog_RELEASE}
|
|
||||||
CONFIGURE_COMMAND ${GLOG_CONFIGURE} --prefix=<INSTALL_DIR>
|
|
||||||
BUILD_COMMAND make
|
|
||||||
UPDATE_COMMAND ""
|
|
||||||
PATCH_COMMAND ""
|
|
||||||
INSTALL_COMMAND ""
|
|
||||||
)
|
|
||||||
endif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
|
||||||
# Set up variables
|
# Set up variables
|
||||||
set(GLOG_INCLUDE_DIRS
|
set(GLOG_INCLUDE_DIRS
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/glog/glog-${glog_RELEASE}/src/
|
${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/glog/glog-${glog_RELEASE}/src/
|
||||||
|
10
README.md
10
README.md
@ -106,7 +106,7 @@ The full stop separated from ```cmake``` by a space is important. [CMake](http:/
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### Install [Gflags](https://gflags.github.io/gflags/ "Gflags' Homepage"), a commandline flags processing module for C++:
|
#### Install [Gflags](https://github.com/gflags/gflags "Gflags' Homepage"), a commandline flags processing module for C++:
|
||||||
|
|
||||||
~~~~~~
|
~~~~~~
|
||||||
$ wget https://github.com/gflags/gflags/archive/v2.1.2.tar.gz
|
$ wget https://github.com/gflags/gflags/archive/v2.1.2.tar.gz
|
||||||
@ -120,12 +120,12 @@ $ sudo ldconfig
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### Install [Glog](http://code.google.com/p/google-glog/ "Glog's Homepage"), a library that implements application-level logging:
|
#### Install [Glog](https://github.com/google/glog "Glog's Homepage"), a library that implements application-level logging:
|
||||||
|
|
||||||
~~~~~~
|
~~~~~~
|
||||||
$ wget http://google-glog.googlecode.com/files/glog-0.3.3.tar.gz
|
$ wget https://github.com/google/glog/archive/v0.3.4.tar.gz
|
||||||
$ tar xvfz glog-0.3.3.tar.gz
|
$ tar xvfz v0.3.4.tar.gz
|
||||||
$ cd glog-0.3.3
|
$ cd glog-0.3.4
|
||||||
$ ./configure
|
$ ./configure
|
||||||
$ make
|
$ make
|
||||||
$ sudo make install
|
$ sudo make install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user