View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002482CMakeCMakepublic2005-11-11 20:402006-10-04 14:16
ReporterAmit Ramesh 
Assigned ToBill Hoffman 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002482: New CMake path variable to be used by all Find*.cmake
DescriptionCurrently there is no variable that contains the list of paths used by Find*.cmake files. It would be nice to have such a variable that is initialized in a platform specific way.

We are having issues with this on a Mac because Fink installations go into /sw and Find*.cmake don't seem to pick packages from there.

It is good to have such a varibale because it is always possible that different people might use different conventions as to where they would like to install packages. For example, on unix systems apart from /usr and /usr/local, sometimes /opt is used for some utilities. Similarly on the Mac /opt is where Darwin ports are installed while /sw is used by Fink.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0003232)
Hans Johnson (reporter)
2005-11-12 12:43

COMMENTS:
1)
I was trying to come up with a reusable system when the FindFFTW.cmake module was written for ITK (Insight/CMake/FindFFTW.cmake). While this example still hardcodes many of the variables, a set of Macros based on these ideas should be pretty easy to define and extend.

2)
These ideas also came up when trying to resolve 32/64 bit build problems (i.e. look for libs in /usr/lib or /usr/lib32 or /usr/lib64).
3)
If macros are written, then the paths should be ordered such that when the sizeof(void*) ==8, search in /usr/lib64 first, then /usr/lib, else if sizeof(void*)==4 then search in /usr/lib32 first, then /usr/lib.
Perhaps look in /usr/freeware/bin on SGI's by default?
Perhaps look in /sw on Macs by default?
4)
A partial solution exists for unix:
CMAKE_LIBRARY_PATH=/usr/X11R6/lib64:/usr/lib64:$(BRAINS2_Complete_SOURCE_DIR)/${ARCH}/${ABI}/src/lib

Regards,
Hans
(0003620)
Brad King (manager)
2006-01-30 10:15

Another interface is suggested here:

http://www.cmake.org/pipermail/cmake/2006-January/007833.html [^]

I'm assigning this bug to Bill.
(0005163)
Bill Hoffman (manager)
2006-10-04 14:16

This is now in the platform files.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team