[CMake] OpenSceneGraph Find Modules

Hendrik Sattler post at hendrik-sattler.de
Sat Jan 5 03:50:46 EST 2008


Am Samstag 05 Januar 2008 schrieb David Wolfe:
> - Look for OSG_LIBRARY under $ENV{OSG_ROOT}/Build in addition to the
>    other places it currently looks

Or forget about your internal convention and let /Build be part of the 
OSG_ROOT environment variable. You could also use a CMake variable instead of 
an environment variable.

> - Set OSG_LIBRARY_DIR to the path component of OSG_LIBRARY

Probably much better because then the user can use find_library() for whatever 
library ships in that dir.

HS


More information about the CMake mailing list