Maybe this helps,

From the CMake 2.6 docs http://www.cmake.org/cmake/help/ctest2.6docs.html under the find_path section:

6. Search the paths specified by the PATHS option or in the short-hand version of the command. These are typically hard-coded guesses.

On Darwin or systems supporting OS X Frameworks, the cmake variable CMAKE_FIND_FRAMEWORK can be set to empty or one of the following:

   "FIRST"  - Try to find frameworks before standard
              libraries or headers. This is the default on Darwin.
   "LAST"   - Try to find frameworks after standard
              libraries or headers.
   "ONLY"   - Only try to find frameworks.
   "NEVER". - Never try to find frameworks.


Cheers,
Hartmut


On 24/6/09 8:56 PM, Ulrich Hertlein wrote:
Hi Robert,

On 23/6/09 6:54 PM, Robert Osfield wrote:
Thanks for tracking down the issue... sorry about the stdint.h being
the cause...  hopefully we'll be able to find a solution that works
across the board.

On Tue, Jun 23, 2009 at 3:41 PM, Ulrich Hertlein<[email protected]> wrote:
...
I've removed "~/Library/Frameworks" and "/Library/Frameworks" from
'FindFFmpeg.cmake' and am re-compiling now.

Would FFmpeg ever be a framework?  Would it be fine just to roll this
into svn/trunk?

Unfortunately it didn't solve the problem. Even with those gone 'stdint.h' is still found in /System/Library/Frameworks/Kernel.framework even though '/System/Library' isn't even searched (and was not before).

Searching in /System/Library/Frameworks is apparently default behaviour for FIND_PATH().

There are ways to tweak that: include NO_DEFAULT_PATH in FIND_PATH(...) or check frameworks last, after the standard libraries. I chose the latter since it's hopefully less likely to break things for anyone else.

Cheers,
/ulrich
------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
Hartmut Seichter, PhD (HKU), Dipl-Ing.(BUW), Postdoctoral Fellow, HITLabNZ

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to