Bug 923024
| Summary: | cmake should pull in gcc-c++ as a runtime dependency | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michel Lind <michel> |
| Component: | cmake | Assignee: | Orion Poplawski <orion> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 18 | CC: | jreznik, ltinkl, orion, pertusus, pmachata, rdieter |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-03-20 02:39:24 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Michel Lind
2013-03-19 03:11:57 UTC
(In reply to comment #0) > (note: I tried installing gcc-c++ but renaming the compiler binary to > g++.bak, ensuring that any attempt to use it will fail -- CMake picked up > that C++ is installed but the compilation still succeeds, so the CXX test is > definitely not needed) Are you sure it didn't just try "gcc -x c++", or even simply "cc -c test.cc"? You don't have to go through the g++ driver to compile C++ code. No mention of c++ or cc anywhere in the source tree. Though I'm not that familiar with CMake internals, so someone more knowledgeable should probably check if there is something wrong in the various CMakeFiles in the project. $ bzr branch lp:granite Why not just ignore the error? I don't believe it causes any problems. (In reply to comment #3) > Why not just ignore the error? I don't believe it causes any problems. On the build systems, no problem because gcc-c++ is part of the default environment. On user systems, it could cause some surprise for non-C++-developers such as myself C++ is enabled in cmake by default. If the project does not use it then it should state explicitly the language(s) it uses, e.g.: project (granite C) Aha, thanks, that indeed fixes the problem. Filing a bug with upstream |