Squashed 'cmake/' changes from de83fed..3ea43dc

3ea43dc Fix program files osg search
14e987f Fix lua and file copy targets

git-subtree-dir: cmake
git-subtree-split: 3ea43dc726d289f72f4fc4c35b8d8acc47b17ab0
This commit is contained in:
Ryan Pavlik
2011-03-28 13:56:57 -05:00
parent 7eb712f9de
commit 468beb30aa
3 changed files with 47 additions and 32 deletions

View File

@@ -33,8 +33,10 @@ if(WIN32)
elseif(MSVC90)
list_filter_out(_osgpaths "[vV][cC]8" ${_osgpaths})
endif()
list(SORT _osgpaths)
list(REVERSE _osgpaths)
if(_osgpaths)
list(SORT _osgpaths)
list(REVERSE _osgpaths)
endif()
endif()
else()
prefix_list_glob(_osgpaths "/OpenSceneGraph*" /usr /usr/local /opt)