MantisBT - CMake
View Issue Details
0013950CMakeModulespublic2013-02-25 07:482013-07-01 09:38
Michael Riss 
Brad King 
normalminoralways
closedfixed 
PCLinux MintKDE 12
CMake 2.8.10.2 
CMake 2.8.11CMake 2.8.11 
0013950: FindBoost.cmake declares Boost_LIBRARY_DIRS as FILEPATH
FindBoost.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.
- 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
Workaround: 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.
No tags attached.
Issue History
2013-02-25 07:48Michael RissNew Issue
2013-02-25 09:02Brad KingNote Added: 0032372
2013-02-25 09:26Michael RissNote Added: 0032373
2013-02-25 09:36Brad KingNote Added: 0032374
2013-02-25 09:36Brad KingAssigned To => Brad King
2013-02-25 09:36Brad KingStatusnew => resolved
2013-02-25 09:36Brad KingResolutionopen => fixed
2013-02-25 09:36Brad KingFixed in Version => CMake 2.8.11
2013-02-25 09:36Brad KingTarget Version => CMake 2.8.11
2013-07-01 09:38Robert MaynardNote Added: 0033433
2013-07-01 09:38Robert MaynardStatusresolved => closed

Notes
(0032372)
Brad King   
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   
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   
2013-02-25 09:36   
Thanks for reporting back. These changes will be in 2.8.11.
(0033433)
Robert Maynard   
2013-07-01 09:38   
Closing resolved issues that have not been updated in more than 4 months.