File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- set (GLOG_URL https://github.com/google/glog/archive/refs/tags/v0.4 .0.tar.gz )
15
+ set (GLOG_URL https://github.com/google/glog/archive/refs/tags/v0.6 .0.tar.gz )
16
16
17
17
message (STATUS "build glog from ${GLOG_URL} " )
18
18
19
19
find_program (MAKE_EXE NAMES gmake nmake make )
20
20
ExternalProject_Add (
21
21
glog
22
22
URL ${GLOG_URL}
23
- URL_HASH SHA256=f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c
23
+ URL_HASH SHA256=8a83bf982f37bb70825df71a9709fa90ea9f4447fb3c099e1d720a439d88bad6
24
24
PREFIX ${DEPS_BUILD_DIR}
25
25
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR} /glog
26
26
INSTALL_DIR ${DEPS_INSTALL_DIR}
27
27
DEPENDS gflags
28
28
BUILD_IN_SOURCE TRUE
29
- CONFIGURE_COMMAND
30
- ./autogen.sh
31
- COMMAND CXXFLAGS=-fPIC ./configure --prefix=<INSTALL_DIR> --enable-shared=no --with-gflags=<INSTALL_DIR>
32
- BUILD_COMMAND ${MAKE_EXE}
33
- INSTALL_COMMAND ${MAKE_EXE} install )
29
+ CONFIGURE_COMMAND ${CMAKE_COMMAND} -H<SOURCE_DIR> -B <BINARY_DIR> -DCMAKE_CXX_FLAGS=-fPIC
30
+ -DBUILD_SHARED_LIBS=OFF -DCMAKE_PREFIX_PATH=<INSTALL_DIR> -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
31
+ BUILD_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> -- ${MAKEOPTS}
32
+ INSTALL_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> --target install )
You can’t perform that action at this time.
0 commit comments