MantisBT - CMake
View Issue Details
0014776CMakeCCMakepublic2014-02-27 05:502016-06-10 14:31
Dmitri 
Kitware Robot 
normalmajoralways
closedmoved 
CygwinWindows8.1
CMake 2.8.12 
 
0014776: find_package for boost broken under cygwin
When using find_package under cygwin, CMake tries looking for the correct path by _appending_ the path to the current path. So it finds c:/boost correctly, but tries to get the header from /cygdrive/c/path/to/my/project/c:/boost/boost/someheader.hpp
Use the find_package to locate Boost on a Cygwin installation. CMake won't be able to find it despite deducing the path correctly.
No tags attached.
Issue History
2014-02-27 05:50DmitriNew Issue
2014-02-27 09:22Brad KingNote Added: 0035214
2014-12-19 06:33DmitriNote Added: 0037494
2014-12-19 08:37Brad KingNote Added: 0037498
2016-06-10 14:29Kitware RobotNote Added: 0042494
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0035214)
Brad King   
2014-02-27 09:22   
Cygwin prefers never to see Windows-style paths. From where does the "c:/boost" path come during the search?
(0037494)
Dmitri   
2014-12-19 06:33   
I'd like to know this too! I do in fact have Boost installed in c:\boost, so that part of feature detection is working correctly. However, lumping it together with Cygdrive is NOT correct - it should be /cygdrive/c/boost instead!
(0037498)
Brad King   
2014-12-19 08:37   
I don't know why I missed this before but there is a hard-coded C:/boost in FindBoost.cmake. Try removing those lines locally to see if it resolves the problem. If so then they can be made conditional on the platform.
(0042494)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.