Setting INTERFACE_COMPILE_FEATURES causes problems on XL
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 107
- Forks
- 26
- Avg merge
- 8d 11h
- Merged PRs (30d)
- 2
Description
This CMake target property is inherited by anyone that uses the exported camp targets. In my case this is used by Axom via RAJA and causes the following very helpful error message:
```
CMake Error in thirdparty/tests/CMakeLists.txt:
No known features for CXX compiler
"XL"
version .
```
This happens on blueos_3_ppc64le_ib_p9 on the compiler, /usr/tce/packages/xl/xl-2019.12.23/bin/xlC .
I did try multiple compiler and CMake versions but they all had the same problem. I worked around this by the following line after importing RAJA:
```
set_target_properties(camp PROPERTIES INTERFACE_COMPILE_FEATURES "")
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the exported camp targets and locate where INTERFACE_COMPILE_FEATURES is set or propagated. Reproduce the configuration with the XL compiler on the reported platform, then verify that consumers no longer inherit unsupported compile features while normal CMake configurations still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100