View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011246CMakeCMakepublic2010-09-18 11:152010-11-09 22:57
ReporterPhilip Lowman 
Assigned ToPhilip Lowman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.3Fixed in VersionCMake 2.8.3 
Summary0011246: FindBoost can find shared libraries (.so) even when Boost_USE_STATIC_LIBS is set
DescriptionWhen Boost_USE_STATIC_LIBS is set, FindBoost has a bug in it where it can still find shared libraries (.so) files in some rare circumstances.

The circumstances which exhibit this bug is a situation like below.
If the user were to delete libboost_system-mt.a FindBoost would find libboost_system-mt.so. The reason why is the CMAKE_FIND_LIBRARY_SUFFIXES variable is set to search ".a" then ".so" when Boost_USE_STATIC_LIBS is true. CMake searches every filename in the list first for a ".a" and then for a ".so".

Most users shouldn't encounter this bug unless they are doing something strange to their installed boost libraries.

libboost_system-mt.a (Delete this file, and FindBoost finds "libboost_system-mt.so")
libboost_system-mt.so
libboost_system.a
libboost_system.so
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0022261)
Philip Lowman (developer)
2010-09-18 11:17

Will be fixed in 2.8.3 RC2

 Issue History
Date Modified Username Field Change
2010-09-18 11:15 Philip Lowman New Issue
2010-09-18 11:15 Philip Lowman Status new => assigned
2010-09-18 11:15 Philip Lowman Assigned To => Philip Lowman
2010-09-18 11:16 Philip Lowman Target Version => CMake 2.8.3
2010-09-18 11:17 Philip Lowman Note Added: 0022261
2010-09-18 11:17 Philip Lowman Status assigned => resolved
2010-09-18 11:17 Philip Lowman Fixed in Version => CMake 2.8.3
2010-09-18 11:17 Philip Lowman Resolution open => fixed
2010-11-09 22:57 Philip Lowman Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team