Skip to content

Commit

Permalink
Fix glmConfig-version.cmake using undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
wojcikt committed Mar 17, 2020
1 parent efbfeca commit 2c84530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/glm/glmConfig-version.cmake
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit 2c84530

Please sign in to comment.