View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007097CMakeModulespublic2008-05-26 04:292008-07-03 16:00
ReporterMartin Apel 
Assigned ToDouglas Gregor 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in VersionCMake-2-6 
Summary0007097: FindBoost on Linux misinterprets compiler version info for library search if compiler name contains version number
DescriptionIf 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 InformationThe 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)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0012615)
Douglas Gregor (developer)
2008-07-03 15:52

Fixed in CMake CVS

 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


Copyright © 2000 - 2018 MantisBT Team