Repository navigation
Conversation
`project()` without `LANGUAGES` enables C and C++. With `CC` unset, CMake then picks the system `cc`, and since FindOpenMP probes every enabled language and caches one `OpenMP_gomp_LIBRARY`, the C++ module links the system compiler's libgomp instead of the one of `CXX`. The generated code is identical; only the link changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Hannes Vogt <hannes@havogt.de>
|
DaCe's |
If DaCe doesn't use C, then I think the fix there makes sense. |
Description
project()withoutLANGUAGESalso enables C. WithCCunset, CMake picks the systemcc, and becauseFindOpenMPcaches a singleOpenMP_gomp_LIBRARYfor all enabled languages, the module links the system compiler'slibgompinstead of the one belonging toCXX. The project now declaresLANGUAGES NONE; the languages it needs (CXX, plus CUDA or HIP for GPU sources) are enabled by theenable_languagecalls that follow. The generated code is unchanged; only the link changes. DaCe'scodegen/CMakeLists.txthas the sameproject(dace_program), which this PR does not touch.Requirements
If this PR contains code authored by new contributors please make sure:
AUTHORS.mdfile adding the names of all the new contributors.🤖 Generated with Claude Code