BUG: Fixes configure error if you don't specify a version with find_package()

This commit is contained in:
Philip Lowman 2009-01-31 13:57:48 -05:00
parent 1897b563d9
commit de70cc194b
1 changed files with 11 additions and 9 deletions

View File

@ -126,6 +126,7 @@ endif()
#
# Version checking
#
if(OpenSceneGraph_FIND_VERSION)
if(OpenSceneGraph_FIND_VERSION_EXACT)
if(NOT OPENSCENEGRAPH_VERSION VERSION_EQUAL ${OpenSceneGraph_FIND_VERSION})
set(_osg_version_not_exact TRUE)
@ -137,6 +138,7 @@ else()
set(_osg_version_not_high_enough TRUE)
endif()
endif()
endif()
set(_osg_required)
set(_osg_quiet)