mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
binpac: Customizable error messages for missing prereqs.
Adds the FindRequiredPackage() macro that wraps the functionality of the standard find_package() macro.
This commit is contained in:
parent
173c3784ab
commit
32423cf27b
1 changed files with 11 additions and 2 deletions
|
@ -45,8 +45,17 @@ endif ()
|
|||
########################################################################
|
||||
## Dependency Configuration
|
||||
|
||||
find_package(FLEX REQUIRED)
|
||||
find_package(BISON REQUIRED)
|
||||
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 ()
|
||||
|
||||
########################################################################
|
||||
## System Introspection
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue