Merge pull request #867 from dedowsdi/fix_cmake_existing_target

Set OpenSceneGraph_${component}_FOUND to TRUE for existing target.
This commit is contained in:
OpenSceneGraph git repository 2019-12-13 09:50:41 +00:00 committed by GitHub
commit 3bb5f468a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()