From 0f6c38c80b49a4d7d3bbdfd8fdbef81f24124c9a Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Wed, 1 Nov 2023 08:47:41 -0700 Subject: [PATCH] Cmake: Ensure find_dependency is on rebuild (#3477) Not 100% sure why, but on build, the `find_dependency` function is available, but on subsequent rebuilds, it is not. This ensure the macro is always available, and unblocking CI. --- sdks/cpp/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdks/cpp/CMakeLists.txt b/sdks/cpp/CMakeLists.txt index 2489865299..8144d27218 100644 --- a/sdks/cpp/CMakeLists.txt +++ b/sdks/cpp/CMakeLists.txt @@ -70,6 +70,9 @@ set(AGONES_THIRDPARTY_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}" CACHE STRING "Path set(AGONES_OPENSSL_CONFIG_STRING "VC-WIN64A" CACHE STRING "See https://github.com/openssl/openssl/blob/OpenSSL_1_1_1-stable/INSTALL for details") # Prerequisities +# [markmandel] - not 100% sure what include(CMakeFindDependencyMacro) does, but it solves the building issue. +# https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#creating-a-package-configuration-file +include(CMakeFindDependencyMacro) include(./cmake/prerequisites.cmake) find_package(Threads REQUIRED) find_package(ZLIB REQUIRED)