aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalter Gray <wgray@leapmotion.com>2016-07-12 15:19:32 -0700
committerWalter Gray <wgray@leapmotion.com>2016-07-12 15:19:32 -0700
commit5520447a7861a77f61a47482649e4c113cc7df4a (patch)
tree63a8da79538d16ecc0783c14f5f9725b1cb56307
parent70c1ac756d3cd8fa04725f82f0ad1a30404c3bb3 (diff)
downloadprotobuf-5520447a7861a77f61a47482649e4c113cc7df4a.tar.gz
protobuf-5520447a7861a77f61a47482649e4c113cc7df4a.tar.bz2
protobuf-5520447a7861a77f61a47482649e4c113cc7df4a.zip
Fix a bad variable dereference causing <package>_FIND_VERSION_PRERELEASE to be ignored.
-rw-r--r--cmake/protobuf-config-version.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/protobuf-config-version.cmake.in b/cmake/protobuf-config-version.cmake.in
index 3b8ced2d..0036c9ef 100644
--- a/cmake/protobuf-config-version.cmake.in
+++ b/cmake/protobuf-config-version.cmake.in
@@ -3,7 +3,7 @@ set(${PACKAGE_FIND_NAME}_VERSION_PRERELEASE "@protobuf_VERSION_PRERELEASE@" PARE
# Prerelease versions cannot be passed in directly via the find_package command,
# so we allow users to specify it in a variable
-if(NOT DEFINED "${${PACKAGE_FIND_NAME}_FIND_VERSION_PRERELEASE}")
+if(NOT DEFINED "${PACKAGE_FIND_NAME}_FIND_VERSION_PRERELEASE")
set("${${PACKAGE_FIND_NAME}_FIND_VERSION_PRERELEASE}" "")
else()
set(PACKAGE_FIND_VERSION ${PACKAGE_FIND_VERSION}-${${PACKAGE_FIND_NAME}_FIND_VERSION_PRERELEASE})