set(SOME_VAR FALSE) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(BeforeProject REQUIRED_VARS SOME_VAR)