Merge pull request #867 from dedowsdi/fix_cmake_existing_target
Set OpenSceneGraph_${component}_FOUND to TRUE for existing target.
This commit is contained in:
commit
3bb5f468a0
@ -95,6 +95,8 @@ foreach(component OpenThreads osg ${OpenSceneGraph_FIND_COMPONENTS})
|
||||
|
||||
if(TARGET @PKG_NAMESPACE@::${component})
|
||||
# This component has already been found, so we'll skip it
|
||||
set(OpenSceneGraph_${component}_FOUND TRUE)
|
||||
set(OPENSCENEGRAPH_${component}_FOUND TRUE)
|
||||
continue()
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user