cmake_minimum_required(VERSION 3.5)

# simplify variable expansion
cmake_policy(SET CMP0053 NEW)
cmake_policy(SET CMP0010 NEW)

project(glog-download NONE)

include(ExternalProject)
ExternalProject_Add(glog_project
	GIT_REPOSITORY https://github.com/google/glog
	GIT_TAG "master"
	#GIT_TAG "v0.3.5"
	SOURCE_DIR "${CMAKE_BINARY_DIR}/glog-src"
	BINARY_DIR "${CMAKE_BINARY_DIR}/glog-build"
	UPDATE_COMMAND ""
	PATCH_COMMAND git apply "${PROJECT_SOURCE_DIR}/patches/glog.patch"
	CONFIGURE_COMMAND ""
	BUILD_COMMAND ""
	INSTALL_COMMAND ""
	TEST_COMMAND ""
	LOG_DOWNLOAD ON
)

cmake_minimum_required(VERSION 3.5)

# simplify variable expansion
cmake_policy(SET CMP0053 NEW)
cmake_policy(SET CMP0010 NEW)

project(glog-download NONE)

include(ExternalProject)
ExternalProject_Add(glog_project
	GIT_REPOSITORY https://github.com/google/glog
	GIT_TAG "55cc27b6eca3d7906fc1a920ca95df7717deb4e7"
	#GIT_TAG "v0.3.5"
	SOURCE_DIR "${CMAKE_BINARY_DIR}/glog-src"
	BINARY_DIR "${CMAKE_BINARY_DIR}/glog-build"
	UPDATE_COMMAND ""
	PATCH_COMMAND git apply "${PROJECT_SOURCE_DIR}/patches/glog.patch"
	CONFIGURE_COMMAND ""
	BUILD_COMMAND ""
	INSTALL_COMMAND ""
	TEST_COMMAND ""
	LOG_DOWNLOAD ON
)

Fix glog tag so patch can apply
Fix glog tag so patch can apply
