Fix COMPILE_TASKS check.