Skip to content

Commit

Permalink
Propagate the path to cuda to the TMVA-dependent Genetic dictionary.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vgvassilev committed Jan 11, 2021
1 parent 0aa904d commit 361704b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion math/genetic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 361704b

Please sign in to comment.