[cmake-developers] [CMake 0013950]: FindBoost.cmake declares Boost_LIBRARY_DIRS as FILEPATH
Mantis Bug Tracker
mantis at public.kitware.com
Mon Feb 25 07:48:05 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13950
======================================================================
Reported By: Michael Riss
Assigned To:
======================================================================
Project: CMake
Issue ID: 13950
Category: Modules
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-02-25 07:48 EST
Last Modified: 2013-02-25 07:48 EST
======================================================================
Summary: FindBoost.cmake declares Boost_LIBRARY_DIRS as
FILEPATH
Description:
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.
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 Information:
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.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-02-25 07:48 Michael Riss New Issue
======================================================================
More information about the cmake-developers
mailing list