2017-09-27 05:37:27 +02:00
|
|
|
#
|
|
|
|
# Copyright 2017 The Abseil Authors.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
2019-03-08 16:27:53 +01:00
|
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
2017-09-27 05:37:27 +02:00
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
|
|
|
include(CMakeParseArguments)
|
2018-11-27 23:21:25 +01:00
|
|
|
include(AbseilConfigureCopts)
|
2019-03-27 16:05:41 +01:00
|
|
|
include(AbseilInstallDirs)
|
2017-09-27 05:37:27 +02:00
|
|
|
|
2018-05-09 20:34:58 +02:00
|
|
|
# The IDE folder for Abseil that will be used if Abseil is included in a CMake
|
|
|
|
# project that sets
|
|
|
|
# set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
# For example, Visual Studio supports folders.
|
|
|
|
set(ABSL_IDE_FOLDER Abseil)
|
2017-09-27 05:37:27 +02:00
|
|
|
|
2018-12-20 21:29:59 +01:00
|
|
|
# absl_cc_library()
|
2017-09-27 05:37:27 +02:00
|
|
|
#
|
2018-10-22 20:04:58 +02:00
|
|
|
# CMake function to imitate Bazel's cc_library rule.
|
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
# NAME: name of target (see Note)
|
|
|
|
# HDRS: List of public header files for the library
|
|
|
|
# SRCS: List of source files for the library
|
|
|
|
# DEPS: List of other libraries to be linked in to the binary targets
|
|
|
|
# COPTS: List of private compile options
|
|
|
|
# DEFINES: List of public defines
|
|
|
|
# LINKOPTS: List of link options
|
2019-03-13 22:59:43 +01:00
|
|
|
# PUBLIC: Add this so that this library will be exported under absl::
|
Export of internal Abseil changes.
--
da04b8cd21f6225d71397471474d34a77df0efd6 by Jon Cohen <cohenjon@google.com>:
Don't use std::any, std::optional, std::variant, and friends on MacOS versions older than 10.14.
Although Xcode 10 includes those headers and makes the types available to use, according to https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes, on MacOS 10.13 and earlier use of any functions (std::get, for example) results in an error message to upgrade to MacOS 10.14.
This fixes https://github.com/abseil/abseil-cpp/issues/207. See that issue for more information on the error generated.
PiperOrigin-RevId: 221844618
--
1d99f77b4c60c5b0d7984f46e8ed63a3f969c635 by Jon Cohen <cohenjon@google.com>:
raw_hash_set_test is still flaky under gcc 4.8. Since we now have the probe_test, we don't need the PerfectRatio tests. Just remove them.
PiperOrigin-RevId: 221843042
--
135cbb2a5d90963256518b3b59fe6710815e5dfa by Abseil Team <absl-team@google.com>:
Update absl/algorithm/CMakeLists.txt to use new functions
i.e. absl_cc_(library|test)
PiperOrigin-RevId: 221828348
--
1a5abde4f17f998ae89d87155d59f982a70202d8 by Jon Cohen <cohenjon@google.com>:
Internal change
PiperOrigin-RevId: 221708245
--
e03e031d4de39275989f695c768b0940cce1ff16 by Matt Armstrong <marmstrong@google.com>:
Log to FATAL in throw_delegate.h
ABSL_RAW_LOG(FATAL, ...) is guaranteed to abort.
Previously, the code was logging to ERROR and
calling abort() explicitly, which defeated any
integration with absl::raw_logging_internal::AbortHook().
These changes are limited to Abseil internal APIs.
PiperOrigin-RevId: 221696513
--
d13691523a3f9a5367fd1194cf9604bf4a969029 by Shahriar Rouf <nafi@google.com>:
Import of CCTZ from GitHub.
PiperOrigin-RevId: 221694877
--
f4044c56d44ba0ac2a9f218ed55f1b1f9e985eae by Abseil Team <absl-team@google.com>:
Update absl/base/CMakeLists.txt to use new functions
i.e. absl_cc_(library|test)
PiperOrigin-RevId: 221676669
GitOrigin-RevId: da04b8cd21f6225d71397471474d34a77df0efd6
Change-Id: If6621e10d096a39b6a056a072c2727a0df0b0620
2018-11-16 22:36:37 +01:00
|
|
|
# Also in IDE, target will appear in Abseil folder while non PUBLIC will be in Abseil/internal.
|
2018-10-22 20:04:58 +02:00
|
|
|
# TESTONLY: When added, this target will only be built if user passes -DABSL_RUN_TESTS=ON to CMake.
|
|
|
|
#
|
|
|
|
# Note:
|
2019-03-13 22:59:43 +01:00
|
|
|
# By default, absl_cc_library will always create a library named absl_${NAME},
|
|
|
|
# and alias target absl::${NAME}. The absl:: form should always be used.
|
2018-10-22 20:04:58 +02:00
|
|
|
# This is to reduce namespace pollution.
|
|
|
|
#
|
|
|
|
# absl_cc_library(
|
|
|
|
# NAME
|
2018-11-13 22:22:00 +01:00
|
|
|
# awesome
|
2018-10-22 20:04:58 +02:00
|
|
|
# HDRS
|
|
|
|
# "a.h"
|
|
|
|
# SRCS
|
|
|
|
# "a.cc"
|
|
|
|
# )
|
|
|
|
# absl_cc_library(
|
|
|
|
# NAME
|
|
|
|
# fantastic_lib
|
|
|
|
# SRCS
|
|
|
|
# "b.cc"
|
|
|
|
# DEPS
|
2019-03-28 19:12:19 +01:00
|
|
|
# absl::awesome # not "awesome" !
|
2019-03-19 19:14:01 +01:00
|
|
|
# PUBLIC
|
2018-10-22 20:04:58 +02:00
|
|
|
# )
|
|
|
|
#
|
|
|
|
# absl_cc_library(
|
|
|
|
# NAME
|
|
|
|
# main_lib
|
|
|
|
# ...
|
2019-03-19 19:14:01 +01:00
|
|
|
# DEPS
|
2019-03-28 19:12:19 +01:00
|
|
|
# absl::fantastic_lib
|
2018-10-22 20:04:58 +02:00
|
|
|
# )
|
|
|
|
#
|
|
|
|
# TODO: Implement "ALWAYSLINK"
|
2018-10-23 21:23:49 +02:00
|
|
|
function(absl_cc_library)
|
2018-10-22 20:04:58 +02:00
|
|
|
cmake_parse_arguments(ABSL_CC_LIB
|
|
|
|
"DISABLE_INSTALL;PUBLIC;TESTONLY"
|
|
|
|
"NAME"
|
|
|
|
"HDRS;SRCS;COPTS;DEFINES;LINKOPTS;DEPS"
|
|
|
|
${ARGN}
|
|
|
|
)
|
2018-10-23 21:23:49 +02:00
|
|
|
|
2019-03-28 19:12:19 +01:00
|
|
|
if(NOT ABSL_CC_LIB_TESTONLY OR ABSL_RUN_TESTS)
|
|
|
|
if(ABSL_ENABLE_INSTALL)
|
|
|
|
set(_NAME "${ABSL_CC_LIB_NAME}")
|
|
|
|
else()
|
|
|
|
set(_NAME "absl_${ABSL_CC_LIB_NAME}")
|
|
|
|
endif()
|
2018-10-23 21:23:49 +02:00
|
|
|
|
|
|
|
# Check if this is a header-only library
|
2019-02-26 17:22:49 +01:00
|
|
|
# Note that as of February 2019, many popular OS's (for example, Ubuntu
|
|
|
|
# 16.04 LTS) only come with cmake 3.5 by default. For this reason, we can't
|
|
|
|
# use list(FILTER...)
|
2018-12-17 00:32:37 +01:00
|
|
|
set(ABSL_CC_SRCS "${ABSL_CC_LIB_SRCS}")
|
2019-02-26 17:22:49 +01:00
|
|
|
foreach(src_file IN LISTS ABSL_CC_SRCS)
|
|
|
|
if(${src_file} MATCHES ".*\\.(h|inc)")
|
|
|
|
list(REMOVE_ITEM ABSL_CC_SRCS "${src_file}")
|
|
|
|
endif()
|
|
|
|
endforeach()
|
2019-03-28 19:12:19 +01:00
|
|
|
if("${ABSL_CC_SRCS}" STREQUAL "")
|
2018-10-22 20:04:58 +02:00
|
|
|
set(ABSL_CC_LIB_IS_INTERFACE 1)
|
|
|
|
else()
|
|
|
|
set(ABSL_CC_LIB_IS_INTERFACE 0)
|
|
|
|
endif()
|
2018-10-23 21:23:49 +02:00
|
|
|
|
|
|
|
if(NOT ABSL_CC_LIB_IS_INTERFACE)
|
2018-10-22 20:04:58 +02:00
|
|
|
add_library(${_NAME} STATIC "")
|
|
|
|
target_sources(${_NAME} PRIVATE ${ABSL_CC_LIB_SRCS} ${ABSL_CC_LIB_HDRS})
|
|
|
|
target_include_directories(${_NAME}
|
2019-03-19 19:14:01 +01:00
|
|
|
PUBLIC
|
2019-08-23 20:38:04 +02:00
|
|
|
"$<BUILD_INTERFACE:${ABSL_COMMON_INCLUDE_DIRS}>"
|
2019-03-27 16:05:41 +01:00
|
|
|
$<INSTALL_INTERFACE:${ABSL_INSTALL_INCLUDEDIR}>
|
2019-03-19 19:14:01 +01:00
|
|
|
)
|
2018-10-22 20:04:58 +02:00
|
|
|
target_compile_options(${_NAME}
|
2018-10-31 16:10:03 +01:00
|
|
|
PRIVATE ${ABSL_CC_LIB_COPTS})
|
2018-10-22 20:04:58 +02:00
|
|
|
target_link_libraries(${_NAME}
|
|
|
|
PUBLIC ${ABSL_CC_LIB_DEPS}
|
2019-03-27 16:05:41 +01:00
|
|
|
PRIVATE
|
|
|
|
${ABSL_CC_LIB_LINKOPTS}
|
|
|
|
${ABSL_DEFAULT_LINKOPTS}
|
2018-10-22 20:04:58 +02:00
|
|
|
)
|
|
|
|
target_compile_definitions(${_NAME} PUBLIC ${ABSL_CC_LIB_DEFINES})
|
2018-10-23 21:23:49 +02:00
|
|
|
|
|
|
|
# Add all Abseil targets to a a folder in the IDE for organization.
|
Export of internal Abseil changes.
--
da04b8cd21f6225d71397471474d34a77df0efd6 by Jon Cohen <cohenjon@google.com>:
Don't use std::any, std::optional, std::variant, and friends on MacOS versions older than 10.14.
Although Xcode 10 includes those headers and makes the types available to use, according to https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes, on MacOS 10.13 and earlier use of any functions (std::get, for example) results in an error message to upgrade to MacOS 10.14.
This fixes https://github.com/abseil/abseil-cpp/issues/207. See that issue for more information on the error generated.
PiperOrigin-RevId: 221844618
--
1d99f77b4c60c5b0d7984f46e8ed63a3f969c635 by Jon Cohen <cohenjon@google.com>:
raw_hash_set_test is still flaky under gcc 4.8. Since we now have the probe_test, we don't need the PerfectRatio tests. Just remove them.
PiperOrigin-RevId: 221843042
--
135cbb2a5d90963256518b3b59fe6710815e5dfa by Abseil Team <absl-team@google.com>:
Update absl/algorithm/CMakeLists.txt to use new functions
i.e. absl_cc_(library|test)
PiperOrigin-RevId: 221828348
--
1a5abde4f17f998ae89d87155d59f982a70202d8 by Jon Cohen <cohenjon@google.com>:
Internal change
PiperOrigin-RevId: 221708245
--
e03e031d4de39275989f695c768b0940cce1ff16 by Matt Armstrong <marmstrong@google.com>:
Log to FATAL in throw_delegate.h
ABSL_RAW_LOG(FATAL, ...) is guaranteed to abort.
Previously, the code was logging to ERROR and
calling abort() explicitly, which defeated any
integration with absl::raw_logging_internal::AbortHook().
These changes are limited to Abseil internal APIs.
PiperOrigin-RevId: 221696513
--
d13691523a3f9a5367fd1194cf9604bf4a969029 by Shahriar Rouf <nafi@google.com>:
Import of CCTZ from GitHub.
PiperOrigin-RevId: 221694877
--
f4044c56d44ba0ac2a9f218ed55f1b1f9e985eae by Abseil Team <absl-team@google.com>:
Update absl/base/CMakeLists.txt to use new functions
i.e. absl_cc_(library|test)
PiperOrigin-RevId: 221676669
GitOrigin-RevId: da04b8cd21f6225d71397471474d34a77df0efd6
Change-Id: If6621e10d096a39b6a056a072c2727a0df0b0620
2018-11-16 22:36:37 +01:00
|
|
|
if(ABSL_CC_LIB_PUBLIC)
|
|
|
|
set_property(TARGET ${_NAME} PROPERTY FOLDER ${ABSL_IDE_FOLDER})
|
|
|
|
elseif(ABSL_CC_LIB_TESTONLY)
|
|
|
|
set_property(TARGET ${_NAME} PROPERTY FOLDER ${ABSL_IDE_FOLDER}/test)
|
|
|
|
else()
|
|
|
|
set_property(TARGET ${_NAME} PROPERTY FOLDER ${ABSL_IDE_FOLDER}/internal)
|
|
|
|
endif()
|
2018-11-27 23:21:25 +01:00
|
|
|
|
|
|
|
# INTERFACE libraries can't have the CXX_STANDARD property set
|
|
|
|
set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD ${ABSL_CXX_STANDARD})
|
|
|
|
set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD_REQUIRED ON)
|
2019-03-19 19:14:01 +01:00
|
|
|
|
|
|
|
# When being installed, we lose the absl_ prefix. We want to put it back
|
|
|
|
# to have properly named lib files. This is a no-op when we are not being
|
|
|
|
# installed.
|
|
|
|
set_target_properties(${_NAME} PROPERTIES
|
|
|
|
OUTPUT_NAME "absl_${_NAME}"
|
|
|
|
)
|
2018-10-22 20:04:58 +02:00
|
|
|
else()
|
|
|
|
# Generating header-only library
|
|
|
|
add_library(${_NAME} INTERFACE)
|
2018-11-13 22:22:00 +01:00
|
|
|
target_include_directories(${_NAME}
|
2019-03-19 19:14:01 +01:00
|
|
|
INTERFACE
|
2019-08-23 20:38:04 +02:00
|
|
|
"$<BUILD_INTERFACE:${ABSL_COMMON_INCLUDE_DIRS}>"
|
2019-03-27 16:05:41 +01:00
|
|
|
$<INSTALL_INTERFACE:${ABSL_INSTALL_INCLUDEDIR}>
|
2019-03-19 19:14:01 +01:00
|
|
|
)
|
2018-10-22 20:04:58 +02:00
|
|
|
target_link_libraries(${_NAME}
|
2019-03-27 16:05:41 +01:00
|
|
|
INTERFACE
|
|
|
|
${ABSL_CC_LIB_DEPS}
|
|
|
|
${ABSL_CC_LIB_LINKOPTS}
|
|
|
|
${ABSL_DEFAULT_LINKOPTS}
|
2018-10-22 20:04:58 +02:00
|
|
|
)
|
|
|
|
target_compile_definitions(${_NAME} INTERFACE ${ABSL_CC_LIB_DEFINES})
|
|
|
|
endif()
|
2018-11-27 23:21:25 +01:00
|
|
|
|
2019-03-19 19:14:01 +01:00
|
|
|
# TODO currently we don't install googletest alongside abseil sources, so
|
|
|
|
# installed abseil can't be tested.
|
2019-03-28 19:12:19 +01:00
|
|
|
if(NOT ABSL_CC_LIB_TESTONLY AND ABSL_ENABLE_INSTALL)
|
2019-03-19 19:14:01 +01:00
|
|
|
install(TARGETS ${_NAME} EXPORT ${PROJECT_NAME}Targets
|
2019-03-27 16:05:41 +01:00
|
|
|
RUNTIME DESTINATION ${ABSL_INSTALL_BINDIR}
|
|
|
|
LIBRARY DESTINATION ${ABSL_INSTALL_LIBDIR}
|
|
|
|
ARCHIVE DESTINATION ${ABSL_INSTALL_LIBDIR}
|
2019-03-19 19:14:01 +01:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
Export of internal Abseil changes.
--
da04b8cd21f6225d71397471474d34a77df0efd6 by Jon Cohen <cohenjon@google.com>:
Don't use std::any, std::optional, std::variant, and friends on MacOS versions older than 10.14.
Although Xcode 10 includes those headers and makes the types available to use, according to https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes, on MacOS 10.13 and earlier use of any functions (std::get, for example) results in an error message to upgrade to MacOS 10.14.
This fixes https://github.com/abseil/abseil-cpp/issues/207. See that issue for more information on the error generated.
PiperOrigin-RevId: 221844618
--
1d99f77b4c60c5b0d7984f46e8ed63a3f969c635 by Jon Cohen <cohenjon@google.com>:
raw_hash_set_test is still flaky under gcc 4.8. Since we now have the probe_test, we don't need the PerfectRatio tests. Just remove them.
PiperOrigin-RevId: 221843042
--
135cbb2a5d90963256518b3b59fe6710815e5dfa by Abseil Team <absl-team@google.com>:
Update absl/algorithm/CMakeLists.txt to use new functions
i.e. absl_cc_(library|test)
PiperOrigin-RevId: 221828348
--
1a5abde4f17f998ae89d87155d59f982a70202d8 by Jon Cohen <cohenjon@google.com>:
Internal change
PiperOrigin-RevId: 221708245
--
e03e031d4de39275989f695c768b0940cce1ff16 by Matt Armstrong <marmstrong@google.com>:
Log to FATAL in throw_delegate.h
ABSL_RAW_LOG(FATAL, ...) is guaranteed to abort.
Previously, the code was logging to ERROR and
calling abort() explicitly, which defeated any
integration with absl::raw_logging_internal::AbortHook().
These changes are limited to Abseil internal APIs.
PiperOrigin-RevId: 221696513
--
d13691523a3f9a5367fd1194cf9604bf4a969029 by Shahriar Rouf <nafi@google.com>:
Import of CCTZ from GitHub.
PiperOrigin-RevId: 221694877
--
f4044c56d44ba0ac2a9f218ed55f1b1f9e985eae by Abseil Team <absl-team@google.com>:
Update absl/base/CMakeLists.txt to use new functions
i.e. absl_cc_(library|test)
PiperOrigin-RevId: 221676669
GitOrigin-RevId: da04b8cd21f6225d71397471474d34a77df0efd6
Change-Id: If6621e10d096a39b6a056a072c2727a0df0b0620
2018-11-16 22:36:37 +01:00
|
|
|
add_library(absl::${ABSL_CC_LIB_NAME} ALIAS ${_NAME})
|
2018-10-22 20:04:58 +02:00
|
|
|
endif()
|
|
|
|
endfunction()
|
2017-09-27 05:37:27 +02:00
|
|
|
|
2018-11-13 22:22:00 +01:00
|
|
|
# absl_cc_test()
|
|
|
|
#
|
|
|
|
# CMake function to imitate Bazel's cc_test rule.
|
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
# NAME: name of target (see Usage below)
|
|
|
|
# SRCS: List of source files for the binary
|
|
|
|
# DEPS: List of other libraries to be linked in to the binary targets
|
|
|
|
# COPTS: List of private compile options
|
|
|
|
# DEFINES: List of public defines
|
|
|
|
# LINKOPTS: List of link options
|
|
|
|
#
|
|
|
|
# Note:
|
|
|
|
# By default, absl_cc_test will always create a binary named absl_${NAME}.
|
|
|
|
# This will also add it to ctest list as absl_${NAME}.
|
|
|
|
#
|
|
|
|
# Usage:
|
|
|
|
# absl_cc_library(
|
|
|
|
# NAME
|
|
|
|
# awesome
|
|
|
|
# HDRS
|
|
|
|
# "a.h"
|
|
|
|
# SRCS
|
|
|
|
# "a.cc"
|
|
|
|
# PUBLIC
|
|
|
|
# )
|
|
|
|
#
|
|
|
|
# absl_cc_test(
|
|
|
|
# NAME
|
|
|
|
# awesome_test
|
|
|
|
# SRCS
|
|
|
|
# "awesome_test.cc"
|
|
|
|
# DEPS
|
|
|
|
# absl::awesome
|
|
|
|
# gmock
|
|
|
|
# gtest_main
|
|
|
|
# )
|
|
|
|
function(absl_cc_test)
|
|
|
|
if(NOT ABSL_RUN_TESTS)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
cmake_parse_arguments(ABSL_CC_TEST
|
|
|
|
""
|
|
|
|
"NAME"
|
|
|
|
"SRCS;COPTS;DEFINES;LINKOPTS;DEPS"
|
|
|
|
${ARGN}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(_NAME "absl_${ABSL_CC_TEST_NAME}")
|
|
|
|
add_executable(${_NAME} "")
|
|
|
|
target_sources(${_NAME} PRIVATE ${ABSL_CC_TEST_SRCS})
|
|
|
|
target_include_directories(${_NAME}
|
|
|
|
PUBLIC ${ABSL_COMMON_INCLUDE_DIRS}
|
|
|
|
PRIVATE ${GMOCK_INCLUDE_DIRS} ${GTEST_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
target_compile_definitions(${_NAME}
|
|
|
|
PUBLIC ${ABSL_CC_TEST_DEFINES}
|
|
|
|
)
|
|
|
|
target_compile_options(${_NAME}
|
|
|
|
PRIVATE ${ABSL_CC_TEST_COPTS}
|
|
|
|
)
|
|
|
|
target_link_libraries(${_NAME}
|
|
|
|
PUBLIC ${ABSL_CC_TEST_DEPS}
|
|
|
|
PRIVATE ${ABSL_CC_TEST_LINKOPTS}
|
|
|
|
)
|
|
|
|
# Add all Abseil targets to a a folder in the IDE for organization.
|
Export of internal Abseil changes.
--
da04b8cd21f6225d71397471474d34a77df0efd6 by Jon Cohen <cohenjon@google.com>:
Don't use std::any, std::optional, std::variant, and friends on MacOS versions older than 10.14.
Although Xcode 10 includes those headers and makes the types available to use, according to https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes, on MacOS 10.13 and earlier use of any functions (std::get, for example) results in an error message to upgrade to MacOS 10.14.
This fixes https://github.com/abseil/abseil-cpp/issues/207. See that issue for more information on the error generated.
PiperOrigin-RevId: 221844618
--
1d99f77b4c60c5b0d7984f46e8ed63a3f969c635 by Jon Cohen <cohenjon@google.com>:
raw_hash_set_test is still flaky under gcc 4.8. Since we now have the probe_test, we don't need the PerfectRatio tests. Just remove them.
PiperOrigin-RevId: 221843042
--
135cbb2a5d90963256518b3b59fe6710815e5dfa by Abseil Team <absl-team@google.com>:
Update absl/algorithm/CMakeLists.txt to use new functions
i.e. absl_cc_(library|test)
PiperOrigin-RevId: 221828348
--
1a5abde4f17f998ae89d87155d59f982a70202d8 by Jon Cohen <cohenjon@google.com>:
Internal change
PiperOrigin-RevId: 221708245
--
e03e031d4de39275989f695c768b0940cce1ff16 by Matt Armstrong <marmstrong@google.com>:
Log to FATAL in throw_delegate.h
ABSL_RAW_LOG(FATAL, ...) is guaranteed to abort.
Previously, the code was logging to ERROR and
calling abort() explicitly, which defeated any
integration with absl::raw_logging_internal::AbortHook().
These changes are limited to Abseil internal APIs.
PiperOrigin-RevId: 221696513
--
d13691523a3f9a5367fd1194cf9604bf4a969029 by Shahriar Rouf <nafi@google.com>:
Import of CCTZ from GitHub.
PiperOrigin-RevId: 221694877
--
f4044c56d44ba0ac2a9f218ed55f1b1f9e985eae by Abseil Team <absl-team@google.com>:
Update absl/base/CMakeLists.txt to use new functions
i.e. absl_cc_(library|test)
PiperOrigin-RevId: 221676669
GitOrigin-RevId: da04b8cd21f6225d71397471474d34a77df0efd6
Change-Id: If6621e10d096a39b6a056a072c2727a0df0b0620
2018-11-16 22:36:37 +01:00
|
|
|
set_property(TARGET ${_NAME} PROPERTY FOLDER ${ABSL_IDE_FOLDER}/test)
|
2018-11-13 22:22:00 +01:00
|
|
|
|
2018-11-27 23:21:25 +01:00
|
|
|
set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD ${ABSL_CXX_STANDARD})
|
|
|
|
set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
2018-11-13 22:22:00 +01:00
|
|
|
add_test(NAME ${_NAME} COMMAND ${_NAME})
|
|
|
|
endfunction()
|
|
|
|
|
2017-09-27 05:37:27 +02:00
|
|
|
|
|
|
|
function(check_target my_target)
|
|
|
|
if(NOT TARGET ${my_target})
|
|
|
|
message(FATAL_ERROR " ABSL: compiling absl requires a ${my_target} CMake target in your project,
|
|
|
|
see CMake/README.md for more details")
|
|
|
|
endif(NOT TARGET ${my_target})
|
|
|
|
endfunction()
|