Skip to content

Commit

Permalink
Cmake: Ensure find_dependency is on rebuild (#3477)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
markmandel committed Nov 1, 2023
1 parent 01fc87b commit 0f6c38c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdks/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0f6c38c

Please sign in to comment.