Skip to content

Commit

Permalink
[Abseil] Adding URL_HASH so that an existing archive can be used from…
Browse files Browse the repository at this point in the history
… disk (#11690)
  • Loading branch information
boberfly authored Jun 9, 2022
1 parent 9131008 commit 8156b93
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmake/external/abseil-cpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,17 @@ FetchContent_Declare(
PREFIX "${CMAKE_CURRENT_BINARY_DIR}/abseil-cpp"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/external/abseil-cpp"
URL https://github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.zip
URL_HASH SHA1=ce61532df974d00025b1220408ce1c900d81baf2
PATCH_COMMAND ${ABSL_PATCH_COMMAND}
)

FetchContent_MakeAvailable(abseil_cpp)
FetchContent_GetProperties(abseil_cpp SOURCE_DIR)

if (GDK_PLATFORM)
# Abseil considers any partition that is NOT in the WINAPI_PARTITION_APP a viable platform
# Abseil considers any partition that is NOT in the WINAPI_PARTITION_APP a viable platform
# for Win32 symbolize code (which depends on dbghelp.lib); this logic should really be flipped
# to only include partitions that are known to support it (e.g. DESKTOP). As a workaround we
# tell Abseil to pretend we're building an APP.
target_compile_definitions(absl_symbolize PRIVATE WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP)
endif()


0 comments on commit 8156b93

Please sign in to comment.