View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013950CMakeModulespublic2013-02-25 07:482013-07-01 09:38
ReporterMichael Riss 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformPCOSLinux MintOS VersionKDE 12
Product VersionCMake 2.8.10.2 
Target VersionCMake 2.8.11Fixed in VersionCMake 2.8.11 
Summary0013950: FindBoost.cmake declares Boost_LIBRARY_DIRS as FILEPATH
DescriptionFindBoost.cmake declares the variable "Boost_LIBRARY_DIRS" as FILEPATH, thereby instructing cmake-gui to search for a file instead of a directory.
=> the file requester function of cmake-gui cannot be used to choose the "Boost_LIBRARY_DIRS" directory

Suggestion:
Change the type of the variable "Boost_LIBRARY_DIRS" in FindBoost.cmake
from FILEPATH to PATH. Caution: The variable is declared in two locations in
FindBoost.cmake, so two lines need to be edited.
Steps To Reproduce- use "find_package( Boost )" in a CMakeLists.txt file
- configure the project with cmake-gui
- try to change the Boost_LIBRARY_DIRS variable using the FileRequester button
=> it's not possible to choose a directory, as the FileRequester wants to choose
a file
Additional InformationWorkaround: it's still possible to set the directory path manually in cmake-gui
with the line edit field.

PS: I did the suggested changes and now I can select the directory also with the
file requester.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0032372)
Brad King (manager)
2013-02-25 09:02

Since 2.8.10.2 the FindBoost module has had a major overhaul in a topic merged here:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=634c8bf4 [^]

The main change was here:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5b9149e0 [^]

Please try a recent development version of CMake to try it out.
(0032373)
Michael Riss (reporter)
2013-02-25 09:26

Indeed, the overhaul affected the Boost_LIBRARY_DIRS option. It's gone and with
it also the bug. Solved, great!
Oh, and I hope the change makes it into the next regular release. ;)
(0032374)
Brad King (manager)
2013-02-25 09:36

Thanks for reporting back. These changes will be in 2.8.11.
(0033433)
Robert Maynard (manager)
2013-07-01 09:38

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-02-25 07:48 Michael Riss New Issue
2013-02-25 09:02 Brad King Note Added: 0032372
2013-02-25 09:26 Michael Riss Note Added: 0032373
2013-02-25 09:36 Brad King Note Added: 0032374
2013-02-25 09:36 Brad King Assigned To => Brad King
2013-02-25 09:36 Brad King Status new => resolved
2013-02-25 09:36 Brad King Resolution open => fixed
2013-02-25 09:36 Brad King Fixed in Version => CMake 2.8.11
2013-02-25 09:36 Brad King Target Version => CMake 2.8.11
2013-07-01 09:38 Robert Maynard Note Added: 0033433
2013-07-01 09:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team