From 8a64f0fe6076ece2074ffce49900ec5a048cc4f9 Mon Sep 17 00:00:00 2001 From: isidorostsa Date: Fri, 23 Aug 2024 09:46:28 +0300 Subject: [PATCH] Add Stdexec to HPXConfig --- cmake/templates/HPXConfig.cmake.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmake/templates/HPXConfig.cmake.in b/cmake/templates/HPXConfig.cmake.in index 5c2c7260f96e..154fac72fbab 100644 --- a/cmake/templates/HPXConfig.cmake.in +++ b/cmake/templates/HPXConfig.cmake.in @@ -27,6 +27,18 @@ else() include(HPX_SetupAsio) endif() + +# Stdexec can be installed by HPX or externally installed. In the first case we use +# exported targets, in the second we find Stdexec again using find_package. +if(HPX_WITH_FETCH_STDEXEC) + include("${CMAKE_CURRENT_LIST_DIR}/HPXStdexecTarget.cmake") +else() + set(Stdexec_ROOT "@Stdexec_ROOT@") + include(HPX_SetupStdexec) +endif() + + + # NLohnmann JSON can be installed by HPX or externally installed. In the first # case we use exported targets, in the second we find JSON again using # find_package.