MantisBT - CMake
View Issue Details
0009566CMakeModulespublic2009-09-18 14:092011-05-02 14:46
dataangel 
Philip Lowman 
normalminoralways
closedfixed 
CMake-2-6 
CMake 2.8.3 
0009566: FindBoost.cmake should look in /opt/local for mac users
The default installation place for ports to drop boost installations is in /opt/local, so it should be one of the BOOST_ROOT's to try.
No tags attached.
Issue History
2009-09-18 14:09dataangelNew Issue
2009-09-18 14:24Bill HoffmanStatusnew => assigned
2009-09-18 14:24Bill HoffmanAssigned To => Brad King
2009-09-18 14:24Bill HoffmanAssigned ToBrad King => Douglas Gregor
2009-09-21 13:44dataangelNote Added: 0017680
2010-08-28 10:20Kovarththanan RajaratnamCategoryCMake => Modules
2010-12-08 10:33David ColeAssigned ToDouglas Gregor => Philip Lowman
2010-12-08 10:33David ColeNote Added: 0023794
2011-01-18 13:27David ColeNote Added: 0024888
2011-01-18 13:27David ColeStatusassigned => resolved
2011-01-18 13:27David ColeFixed in Version => CMake 2.8.3
2011-01-18 13:27David ColeResolutionopen => fixed
2011-05-02 14:46David ColeNote Added: 0026366
2011-05-02 14:46David ColeStatusresolved => closed

Notes
(0017680)
dataangel   
2009-09-21 13:44   
Actually, FindBoost should use CMAKE_SYSTEM_PREFIX_PATH, from brad.king commenting on 0009567:

This already exists. It's called "CMAKE_SYSTEM_PREFIX_PATH":

http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:CMAKE_SYSTEM_PREFIX_PATH [^]

It already takes care of listing 32-bit and 64-bit Program Files
directories, etc.

Furthermore, all the FIND_* commands already search under it.

If a module needs specific package names to be added, it is free to do so.
 For example, FindBoost could do:

 set(_boost_INCLUDE_SEARCH_DIRS)
 foreach(dir ${CMAKE_SYSTEM_PREFIX_PATH})
   list(APPEND _boost_INCLUDE_SEARCH_DIRS ${dir}/boost/include
${dir}/boost)
 endforeach()

instead of hard-coding the include search path.
(0023794)
David Cole   
2010-12-08 10:33   
I think this may have been fixed by a generic addition of looking for stuff in "/opt/local" on the Mac in the 2.8.3 release...
(0024888)
David Cole   
2011-01-18 13:27   
This should be fixed "automatically" now because CMAKE_SYSTEM_PREFIX_PATH always includes "/opt/local" in Darwin.cmake.

If there is still a problem, please feel free to re-open this issue and attach additional information.
(0026366)
David Cole   
2011-05-02 14:46   
Closing resolved issues that have not been updated in more than 3 months.