aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/protobuf-config-version.cmake.in
diff options
context:
space:
mode:
authorGravatar Walter Gray <wgray@leapmotion.com>2017-05-30 14:11:46 -0700
committerGravatar Walter Gray <wgray@leapmotion.com>2017-05-30 15:04:11 -0700
commita183a0df61d1b505356c2befa9c2fb9d0fddd770 (patch)
tree97672ea531bc2b5a096a7e0c83dcee8c66596f4b /cmake/protobuf-config-version.cmake.in
parentae85cb8ef3c763eb506c945fe68f8bf0f95f3728 (diff)
Fix the check_and_save_build_option macro never evaluating to true
Diffstat (limited to 'cmake/protobuf-config-version.cmake.in')
-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 8d391254..e11e9fbb 100644
--- a/cmake/protobuf-config-version.cmake.in
+++ b/cmake/protobuf-config-version.cmake.in
@@ -39,7 +39,7 @@ endif()
# Check and save build options used to create this package
macro(_check_and_save_build_option OPTION VALUE)
if(DEFINED ${PACKAGE_FIND_NAME}_${OPTION} AND
- NOT ${PACKAGE_FIND_NAME}_${OPTION} EQUAL VALUE)
+ NOT ${PACKAGE_FIND_NAME}_${OPTION} STREQUAL ${VALUE})
set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()
set(${PACKAGE_FIND_NAME}_${OPTION} ${VALUE})