Fix the check_and_save_build_option macro never evaluating to true

This commit is contained in:
Walter Gray 2017-05-30 14:11:46 -07:00
parent ae85cb8ef3
commit a183a0df61

View file

@ -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})