From 7956439dc3ae002e274ea3815c40f66ea5e56f45 Mon Sep 17 00:00:00 2001 From: Umar Arshad Date: Tue, 9 Mar 2021 13:26:55 -0500 Subject: [PATCH] Fix glad add_subdirectory to fix out of tree builds This was a problem on the arrayfire-benchmark repo where the repository is built as a subproject --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 266636a643..79df0ec19b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,7 +193,7 @@ if(NOT LAPACK_FOUND) endif() endif() -add_subdirectory(${${glad_prefix}_SOURCE_DIR}) +add_subdirectory(${${glad_prefix}_SOURCE_DIR} ${${glad_prefix}_BINARY_DIR}) add_subdirectory(src/backend/common) add_subdirectory(src/api/c)