From 2045979377f0dabad02726afd1ef66e8a2f7fd07 Mon Sep 17 00:00:00 2001 From: sean <43609023+spnda@users.noreply.github.com> Date: Thu, 22 Feb 2024 22:29:38 +0100 Subject: [PATCH 1/2] Fix: Use include instead of find_package for CMake config --- cmake/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 3b80747c..7bc36021 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -18,5 +18,4 @@ set( ) mark_as_advanced(GLAD_CMAKE_DIR) -list(APPEND CMAKE_PREFIX_PATH ${GLAD_SOURCES_DIR}) -find_package(Glad REQUIRED) +include(${CMAKE_CURRENT_SOURCE_DIR}/GladConfig.cmake) From b7ba3eb5acd4e8241b6000f6fa77f7f152beff41 Mon Sep 17 00:00:00 2001 From: sean <43609023+spnda@users.noreply.github.com> Date: Thu, 22 Feb 2024 23:07:17 +0100 Subject: [PATCH 2/2] Update cmake/CMakeLists.txt Co-authored-by: Oleg Ageev --- cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 7bc36021..690282b5 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -18,4 +18,4 @@ set( ) mark_as_advanced(GLAD_CMAKE_DIR) -include(${CMAKE_CURRENT_SOURCE_DIR}/GladConfig.cmake) +include(${GLAD_CMAKE_DIR}/GladConfig.cmake)