include(CheckFunctionExists) check_function_exists(re_comp HAVE_RE_COMP) if(HAVE_RE_COMP) set(PROG plot2fig) llvm_multisource() endif()