CMake: Use standard variables for the version

This commit is contained in:
Max Bruckner
2016-11-06 14:58:22 +07:00
parent de992ec3c9
commit 8a838b37e3
2 changed files with 8 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
set(PACKAGE_VERSION "@CJSON_VERSION@")
set(PACKAGE_VERSION "@PROJECT_VERSION@")
# Check whether the requested PACKAGE_FIND_VERSION is compatible
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")