Skip to content

Commit 5ca9a02

Browse files
authored
Merge pull request #539 from CesiumGS/abseil-configure-order
Fix linker errors by replacing strings in Abseil source before running cmake configure
2 parents 0d8f0e0 + 5cc5725 commit 5ca9a02

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- Fixed a bug that could cause a crash on AppDomain reloads.
88
- Fixed a bug that could cause a crash or incorrect textures when multiple `Cesium3DTileset` tiles referenced the same image by URL.
9+
- Fixed a bug in the Abseil vcpkg overlay port that could cause linker errors on some systems.
910

1011
## v1.14.0 - 2024-12-02
1112

native~/vcpkg/ports/abseil/portfile.cmake

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ endif()
2727
# Don't let Abseil clobber our CMAKE_MSVC_RUNTIME_LIBRARY choice.
2828
vcpkg_replace_string("${SOURCE_PATH}/CMakeLists.txt" "set(CMAKE_MSVC_RUNTIME_LIBRARY \"MultiThreaded$<$<CONFIG:Debug>:Debug>DLL\")" "#set(CMAKE_MSVC_RUNTIME_LIBRARY \"MultiThreaded$<$<CONFIG:Debug>:Debug>DLL\")")
2929

30-
vcpkg_cmake_configure(
31-
SOURCE_PATH "${SOURCE_PATH}"
32-
DISABLE_PARALLEL_CONFIGURE
33-
OPTIONS
34-
-DABSL_PROPAGATE_CXX_STD=OFF
35-
-DCMAKE_CXX_STANDARD=14
36-
${ABSL_USE_CXX17_OPTION}
37-
${ABSL_STATIC_RUNTIME_OPTION}
38-
)
39-
4030
# Don't let our customized version of Abseil pose as the real thing.
4131
vcpkg_replace_string("${SOURCE_PATH}/absl/base/options.h" "ABSL_OPTION_INLINE_NAMESPACE_NAME lts_20240722" "ABSL_OPTION_INLINE_NAMESPACE_NAME lts_20240722_cesium_for_unreal")
4232
vcpkg_replace_string("${SOURCE_PATH}/absl/base/options.h" "ABSL_OPTION_USE_STD_ANY 2" "ABSL_OPTION_USE_STD_ANY 0")
@@ -52,6 +42,16 @@ vcpkg_replace_string("${SOURCE_PATH}/absl/base/config.h" "#define ABSL_LTS_RELEA
5242
vcpkg_replace_string("${SOURCE_PATH}/absl/time/time.h" "__cpp_impl_three_way_comparison" "__cpp_lib_three_way_comparison")
5343
vcpkg_replace_string("${SOURCE_PATH}/absl/strings/cord.h" "__cpp_impl_three_way_comparison" "__cpp_lib_three_way_comparison")
5444

45+
vcpkg_cmake_configure(
46+
SOURCE_PATH "${SOURCE_PATH}"
47+
DISABLE_PARALLEL_CONFIGURE
48+
OPTIONS
49+
-DABSL_PROPAGATE_CXX_STD=OFF
50+
-DCMAKE_CXX_STANDARD=14
51+
${ABSL_USE_CXX17_OPTION}
52+
${ABSL_STATIC_RUNTIME_OPTION}
53+
)
54+
5555
vcpkg_cmake_install()
5656
vcpkg_cmake_config_fixup(PACKAGE_NAME absl CONFIG_PATH lib/cmake/absl)
5757
vcpkg_fixup_pkgconfig()

0 commit comments

Comments
 (0)