Fix glmConfig-version.cmake using undefined variable

This commit is contained in:
Tomasz Wójcik 2020-03-17 20:07:08 +01:00
parent efbfecab63
commit 2c84530227

View File

@ -1,10 +1,10 @@
set(PACKAGE_VERSION 0.9.9)
if(${PACKAGE_FIND_VERSION_MAJOR} EQUAL 0)
if (${PACKAGE_FIND_VERSION} VERSION_LESS ${GLM_VERSION})
if (${PACKAGE_FIND_VERSION} VERSION_LESS ${PACKAGE_VERSION})
set(PACKAGE_VERSION_COMPATIBLE 1)
endif()
if(${PACKAGE_FIND_VERSION} VERSION_EQUAL ${GLM_VERSION})
if(${PACKAGE_FIND_VERSION} VERSION_EQUAL ${PACKAGE_VERSION})
set(PACKAGE_VERSION_EXACT 1)
endif()
else()