Fix the check_and_save_build_option macro never evaluating to true
This commit is contained in:
parent
ae85cb8ef3
commit
a183a0df61
1 changed files with 1 additions and 1 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Reference in a new issue