shaka-packager/packager/third_party/glog/CMakeLists.txt

25 lines
749 B
CMake

# Copyright 2022 Google LLC. All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
# CMake build file to host glog configuration.
# We will use abseil for flags, so turn off glog's search for gflags.
set(WITH_GFLAGS OFF)
# Don't depend on gtest, since we won't be building glog's tests.
set(WITH_GTEST OFF)
# Don't depend on or search for libunwind.
set(WITH_UNWIND OFF)
# Disable this warning/error, which occurs in demangle.c on macOS:
if(NOT MSVC)
add_compile_options(-Wno-shorten-64-to-32)
endif()
# With these set in scope of this folder, load the library's own CMakeLists.txt.
add_subdirectory(source)