Skip to content

Commit

Permalink
Use MultipleHeaders
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jul 5, 2024
1 parent ba5fb8d commit 33b0ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4225,7 +4225,8 @@ macro(build_nlohmann_json)
set(NLOHMANN_JSON_INCLUDE_DIR "${NLOHMANN_JSON_PREFIX}/include")
set(NLOHMANN_JSON_CMAKE_ARGS
${EP_COMMON_CMAKE_ARGS} "-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>"
-DJSON_BuildTests=OFF)
# google-cloud-cpp requires JSON_MultipleHeaders=ON
-DJSON_BuildTests=OFF -DJSON_MultipleHeaders=ON)

set(NLOHMANN_JSON_BUILD_BYPRODUCTS ${NLOHMANN_JSON_PREFIX}/include/nlohmann/json.hpp)

Expand Down Expand Up @@ -4294,7 +4295,6 @@ macro(build_google_cloud_cpp_storage)
# We need this to build with OpenSSL 3.0.
# See also: https://github.com/googleapis/google-cloud-cpp/issues/8544
-DGOOGLE_CLOUD_CPP_ENABLE_WERROR=OFF
-DGOOGLE_CLOUD_CPP_NLOHMANN_JSON_HEADER=$<TARGET_PROPERTY:nlohmann_json::nlohmann_json,INTERFACE_INCLUDE_DIRECTORIES>
-DGOOGLE_CLOUD_CPP_WITH_MOCKS=OFF
-DOPENSSL_CRYPTO_LIBRARY=${OPENSSL_CRYPTO_LIBRARY}
-DOPENSSL_INCLUDE_DIR=${OPENSSL_INCLUDE_DIR}
Expand Down

0 comments on commit 33b0ab2

Please sign in to comment.