remove (cmake version and git detached head) warnings from build logs
This commit is contained in:
parent
08b635d405
commit
a930039952
|
@ -1,9 +1,12 @@
|
|||
cmake_minimum_required(VERSION 3.13)
|
||||
project(googlebenchmark-download NONE)
|
||||
|
||||
include(ExternalProject)
|
||||
ExternalProject_Add(googlebenchmark
|
||||
GIT_REPOSITORY https://github.com/google/benchmark.git
|
||||
GIT_TAG 8039b4030795b1c9b8cedb78e3a2a6fb89574b6e # v1.5.1
|
||||
GIT_SHALLOW ON
|
||||
GIT_CONFIG advice.detachedHead=false
|
||||
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-src"
|
||||
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-build"
|
||||
CMAKE_ARGS "-DCMAKE_BUILD_TYPE=Release -DBENCHMARK_ENABLE_LTO=true"
|
||||
|
@ -17,6 +20,8 @@ include(ExternalProject)
|
|||
ExternalProject_Add(googletest DEPENDS googlebenchmark
|
||||
GIT_REPOSITORY https://github.com/google/googletest.git
|
||||
GIT_TAG 2fe3bd994b3189899d93f1d5a881e725e046fdc2 # release-1.8.1
|
||||
GIT_SHALLOW ON
|
||||
GIT_CONFIG advice.detachedHead=false
|
||||
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-src/googletest"
|
||||
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-build/googletest"
|
||||
CONFIGURE_COMMAND ""
|
||||
|
|
Loading…
Reference in New Issue