BUG: Fixes configure error if you don't specify a version with find_package()
This commit is contained in:
parent
1897b563d9
commit
de70cc194b
|
@ -126,6 +126,7 @@ endif()
|
||||||
#
|
#
|
||||||
# Version checking
|
# Version checking
|
||||||
#
|
#
|
||||||
|
if(OpenSceneGraph_FIND_VERSION)
|
||||||
if(OpenSceneGraph_FIND_VERSION_EXACT)
|
if(OpenSceneGraph_FIND_VERSION_EXACT)
|
||||||
if(NOT OPENSCENEGRAPH_VERSION VERSION_EQUAL ${OpenSceneGraph_FIND_VERSION})
|
if(NOT OPENSCENEGRAPH_VERSION VERSION_EQUAL ${OpenSceneGraph_FIND_VERSION})
|
||||||
set(_osg_version_not_exact TRUE)
|
set(_osg_version_not_exact TRUE)
|
||||||
|
@ -137,6 +138,7 @@ else()
|
||||||
set(_osg_version_not_high_enough TRUE)
|
set(_osg_version_not_high_enough TRUE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
set(_osg_required)
|
set(_osg_required)
|
||||||
set(_osg_quiet)
|
set(_osg_quiet)
|
||||||
|
|
Loading…
Reference in New Issue