From 361704bc996efb9d8265b79894dd18f0918f6706 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Thu, 7 Jan 2021 11:52:51 +0000 Subject: [PATCH] Propagate the path to cuda to the TMVA-dependent Genetic dictionary. This is a workaround for a missing feature in our ROOT_GENERATE_DICTIONARY where we should also propagate the include paths of dependent third-party modules. Partially addresses ROOT-10980 --- math/genetic/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/math/genetic/CMakeLists.txt b/math/genetic/CMakeLists.txt index bcf6b0e175fe6..94d496b37d936 100644 --- a/math/genetic/CMakeLists.txt +++ b/math/genetic/CMakeLists.txt @@ -8,13 +8,18 @@ # CMakeLists.txt file for building ROOT math/genetic package # @author Pere Mato, CERN ############################################################################ - +if(tmva-gpu) + # FIXME: We should inherit modules-specific include paths if we specify the + # dictionary dependency, in that case TMVA. + set(dictoptions -I${CUDA_TOOLKIT_INCLUDE}) +endif(tmva-gpu) ROOT_STANDARD_LIBRARY_PACKAGE(Genetic HEADERS Math/GeneticMinimizer.h SOURCES src/GeneticMinimizer.cxx DICTIONARY_OPTIONS + ${dictoptions} -writeEmptyRootPCM DEPENDENCIES Core