View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0007097 | CMake | Modules | public | 2008-05-26 04:29 | 2008-07-03 16:00 | ||||
Reporter | Martin Apel | ||||||||
Assigned To | Douglas Gregor | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake-2-6 | ||||||||
Target Version | Fixed in Version | CMake-2-6 | |||||||
Summary | 0007097: FindBoost on Linux misinterprets compiler version info for library search if compiler name contains version number | ||||||||
Description | If the compiler name on Linux is e.g. gcc-4.2, then the FindBoost module searches for boost libraries containing the version string -gccg++-4.2 (GCC) 4.2.2 instead of -gcc42 The statement STRING(REGEX REPLACE ".* ([0-9])\\.([0-9])\\.[0-9] .*" "\\1\\2" _boost_COMPILER_VERSION ${_boost_COMPILER_VERSION}) inside FindBoost.cmake seems to fail in this case. The cause is probably the trailing blank required by the regular expression, which is not always there. The result of this bug is that Boost is never found in this configuration. | ||||||||
Additional Information | The output of gcc --version on this machine is gcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52) The output of gcc-4.2 --version on this machine is gcc-4.2 (GCC) 4.2.2 It would probably be better to use a regular expression such as ".*\\(GCC\\) ([0-9])\\.([0-9])\\.[0-9].*" (untested) | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0012615) Douglas Gregor (developer) 2008-07-03 15:52 |
Fixed in CMake CVS |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2008-05-26 04:29 | Martin Apel | New Issue | |
2008-05-26 09:47 | Bill Hoffman | Status | new => assigned |
2008-05-26 09:47 | Bill Hoffman | Assigned To | => Douglas Gregor |
2008-07-03 15:52 | Douglas Gregor | Status | assigned => resolved |
2008-07-03 15:52 | Douglas Gregor | Fixed in Version | => CMake-2-6 |
2008-07-03 15:52 | Douglas Gregor | Resolution | open => fixed |
2008-07-03 15:52 | Douglas Gregor | Note Added: 0012615 | |
2008-07-03 16:00 | Douglas Gregor | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |