diff --git a/tools/binpac/CMakeLists.txt b/tools/binpac/CMakeLists.txt index b5ca54a665..92d9abc0f8 100644 --- a/tools/binpac/CMakeLists.txt +++ b/tools/binpac/CMakeLists.txt @@ -25,17 +25,8 @@ include(GNUInstallDirs) ######################################################################## ## Dependency Configuration -include(FindRequiredPackage) - -FindRequiredPackage(FLEX) -FindRequiredPackage(BISON) - -if (MISSING_PREREQS) - foreach (prereq ${MISSING_PREREQ_DESCS}) - message(SEND_ERROR ${prereq}) - endforeach () - message(FATAL_ERROR "Configuration aborted due to missing prerequisites") -endif () +find_package(FLEX REQUIRED) +find_package(BISON REQUIRED) if (MSVC) add_compile_options(/J) # Similar to -funsigned-char on other platforms