Revision e26d574c47db36dfbc9277c33c7c64fcaa69d884 authored by Jonas Rembser on 05 April 2024, 13:21:19 UTC, committed by Jonas Rembser on 05 April 2024, 15:20:59 UTC
In the ROOT build system, `CheckCompiler` is included before `RootBuildOptions`. The problem with this is that when building with `-Dall=ON`, the `cuda` flag is only set in `RootBuildOptions`, which is too late to find the CUDA compiler in `CheckCompiler`. This results in issues like #15139: ``` CMake Error in roofit/batchcompute/CMakeLists.txt: Exporting the target "RooBatchCompute_CUDA" is not allowed since its linker language cannot be determined ``` This commit suggests a solution to this problem: just always enable the CUDA language in CMake if it is found, and only set the `cuda` flag with `-Dall=ON` if the CUDA language is enabled.
1 parent f409a6f
File | Mode | Size |
---|---|---|
.ci | ||
.github | ||
README | ||
bindings | ||
build | ||
builtins | ||
cmake | ||
config | ||
core | ||
doc | ||
documentation | ||
etc | ||
fonts | ||
geom | ||
graf2d | ||
graf3d | ||
gui | ||
hist | ||
html | ||
icons | ||
interpreter | ||
io | ||
js | ||
macros | ||
main | ||
man | ||
math | ||
misc | ||
montecarlo | ||
net | ||
proof | ||
roofit | ||
rootx | ||
sql | ||
test | ||
tmva | ||
tree | ||
tutorials | ||
ui5 | ||
.clang-format | -rw-r--r-- | 3.0 KB |
.clang-tidy | -rw-r--r-- | 22 bytes |
.git-commit-template | -rw-r--r-- | 813 bytes |
.gitattributes | -rw-r--r-- | 598 bytes |
.gitignore | -rw-r--r-- | 550 bytes |
.mailmap | -rw-r--r-- | 9.6 KB |
.travis.yml | -rw-r--r-- | 1.9 KB |
.typos.toml | -rw-r--r-- | 412 bytes |
CMakeLists.txt | -rw-r--r-- | 36.9 KB |
CONTRIBUTING.md | -rw-r--r-- | 7.8 KB |
LGPL2_1.txt | -rw-r--r-- | 23.9 KB |
LICENSE | -rw-r--r-- | 847 bytes |
README.md | -rw-r--r-- | 4.2 KB |
configure | -rwxr-xr-x | 180 bytes |
requirements.txt | -rw-r--r-- | 648 bytes |
Computing file changes ...