On a stock Ubuntu system CMAKE_C_COMPILER could be "/usr/bin/cc"
instead of "/usr/bin/gcc". For such cases, replace 'cc' with 'c++' when
compiling C++ test files.
Details
- Reviewers
clayborg
Diff Detail
Event Timeline
LGTM.
We have the same issue on FreeBSD - in /usr/bin we have no gcc, but do have clang and cc, and CMake prefers the latter.
test/make/Makefile.rules | ||
---|---|---|
133 | It'd be nice if we can line wrap these (perhaps with a trailing \) to make it a bit more readable. |
This looks like the same patch as D4679, which the author never ended up submitting. Could you just confirm that the two patches are equivalent? (i.e. that the other patch does not do anything else that your patch does not do?) If the other patch does something additional, maybe you could incorporate it into your patch as well.
Yup D4679 is equivalent. Difference is the indentation format. I do not mind which should go in, but would like one of them to be in.
Doesn't matter to me either. Might as well submit yours since you already have it applied locally. Just wanted to make sure there was nothing additional in D4679 that you didn't put in your patch. :)
It'd be nice if we can line wrap these (perhaps with a trailing \) to make it a bit more readable.