From a183a0df61d1b505356c2befa9c2fb9d0fddd770 Mon Sep 17 00:00:00 2001 From: Walter Gray Date: Tue, 30 May 2017 14:11:46 -0700 Subject: Fix the check_and_save_build_option macro never evaluating to true --- cmake/protobuf-config-version.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) -- cgit v1.2.3