1 2 3 4 5 6
set(BFV_FOO TRUE) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(BadFoundVar REQUIRED_VARS BFV_FOO FOUND_VAR badfoundvar_FOUND )