cmake_modules/commonSetup.cmake:627 (MESSAGE): You need Gnu c++ version 4.7.3 or later to build this project (version 4.7 detected)
The problem is in the line 289 (in commonSetup.cmake) where the ‘-dumpversion’ parameter used. This returns only the major and the minor versions like 4.7 for the compiler 4.7.3.
It would be better to using --version to determine compiler version like for clang.
Conclusion
None
Activity
Show:
Xiaoming Wang March 17, 2016 at 3:02 PM
Since cmake provide variable CMAKE_C_COMPILER_VERSION and CMAKE_CXX_COMPILER_VERSION I do add a test in chance these do not have expected format.
To add "gcc --version" may complicate the process since different Linux distro may have different output such as Ubuntu and CentOS.
Fixed
Pinned fields
Click on the next to a field label to start pinning.
cmake_modules/commonSetup.cmake:627 (MESSAGE):
You need Gnu c++ version 4.7.3 or later to build this project (version 4.7 detected)
The problem is in the line 289 (in commonSetup.cmake) where the ‘-dumpversion’ parameter used. This returns only the major and the minor versions like 4.7 for the compiler 4.7.3.
It would be better to using --version to determine compiler version like for clang.