So it seems that cmake isn't setting CMAKECXXCOMPILERID for some reason. This was seen on Leopard using: defaultcompilers macports-clang-3.4 macports-clang-3.3 gcc-4.2 apple-gcc-4.2 gcc-4.0 cxxstdlib libstdc deletelafiles yes. And it was also seen on Yosemite with Xcode 7. I suspect cmake is perhaps failing to parse -version output. GitHub Gist: instantly share code, notes, and snippets.
Cmake Cxx Standard 20
Hi,
Not sure if this is the right place to ask this question, but I've already tried every SO solution I could find, and thought maybe someone from the CMake community might help.
I'm learning Cpp using exercism, and the tests for this simple program:
are done using CMake. This is the CMakeLists.txt file:
Following the instructions, I did:
And got:
After going over many SO answers, I've realised that the problem is that CMake is using Clang and not Homebrew's GCC. I've fixed this using a symlink, and now I get a different CMake error:
Any help would be much appreciated!
Opened 6 years ago
After going over many SO answers, I've realised that the problem is that CMake is using Clang and not Homebrew's GCC. I've fixed this using a symlink, and now I get a different CMake error:
Any help would be much appreciated!
Opened 6 years ago
Closed 5 years ago
Last modified 3 years ago
#48331closeddefect (fixed)
Reported by: | Owned by: | ryandesign (Ryan Schmidt) | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | ||
Port: | cmake |
Attachments (5)
- CMakeError.log (1.2 KB) - added by jeremyhu (Jeremy Huddleston Sequoia)6 years ago.
- CMakeError.log
- CMakeOutput.log (8.3 KB) - added by jeremyhu (Jeremy Huddleston Sequoia)6 years ago.
- CMakeOutput.log
- cmake.diff (1.2 KB) - added by ryandesign (Ryan Schmidt)6 years ago.
- patch-Modules-CMakeDetermineCompilerId.cmake.release.diff (660 bytes) - added by ryandesign (Ryan Schmidt)6 years ago.
- patch-Modules-CMakeDetermineCompilerId.cmake.devel.diff (660 bytes) - added by ryandesign (Ryan Schmidt)6 years ago.
Download all attachments as: .zip
Change History (13)
Changed 6 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Changed 6 years ago by jeremyhu (Jeremy Huddleston Sequoia)
comment:1 Changed 6 years ago by jeremyhu (Jeremy Huddleston Sequoia)
comment:2 Changed 6 years ago by dbevans (David B. Evans)
comment:3 Changed 6 years ago by ryandesign (Ryan Schmidt)
Cmake Cxx Compiler Not Found
comment:4 Changed 6 years ago by MaddTheSane (C.W. Betts)
comment:5follow-up: 6 Changed 6 years ago by ryandesign (Ryan Schmidt)
Changed 6 years ago by ryandesign (Ryan Schmidt)
Changed 6 years ago by ryandesign (Ryan Schmidt)
Attachment: | patch-Modules-CMakeDetermineCompilerId.cmake.release.diff added |
---|
Changed 6 years ago by ryandesign (Ryan Schmidt)
What Is Clang
Attachment: | patch-Modules-CMakeDetermineCompilerId.cmake.devel.diff added |
---|
comment:6 in reply to: 5 Changed 6 years ago by ryandesign (Ryan Schmidt)
Cc: | michaelld@… added; ryandesign@… removed |
---|---|
Owner: | changed from michaelld@… to ryandesign@… |
Status: | new → assigned |