From 974e22d5d6f99f12d779ae4ec90719136f48061f Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Mon, 21 Aug 2023 10:46:01 +0200 Subject: [PATCH] [INFRA] Allow setting the submodule directory --- cmake/configuration.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/configuration.cmake b/cmake/configuration.cmake index df6a9e11..62cef8be 100644 --- a/cmake/configuration.cmake +++ b/cmake/configuration.cmake @@ -38,7 +38,11 @@ endmacro () # Add submodules # ---------------------------------------------------------------------------- -file (GLOB submodules ${HIBF_SOURCE_DIR}/submodules/*/include ${HIBF_SOURCE_DIR}/submodules/simde/simde) +set (HIBF_SUBMODULES_DIR + "${HIBF_SOURCE_DIR}" + CACHE STRING "Directory containing submodules.") +file (GLOB submodules ${HIBF_SUBMODULES_DIR}/submodules/*/include ${HIBF_SUBMODULES_DIR}/submodules/simde/simde + ${HIBF_SUBMODULES_DIR}/simde/simde) foreach (submodule ${submodules}) if (IS_DIRECTORY ${submodule}) hibf_config_print (" …adding submodule include: ${submodule}")