summaryrefslogtreecommitdiffstats
path: root/Modules/FindBISON.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2010-07-28 22:09:14 (GMT)
committerAlex Neundorf <neundorf@kde.org>2010-07-28 22:09:14 (GMT)
commitd358cf5cc4d70f730873646ae95bdb0c637db262 (patch)
tree7f224d66b442bf3a665628ad83edf4377cf3b6b5 /Modules/FindBISON.cmake
parent1d986234435afb113cc07fefe0d5002b198d0534 (diff)
downloadCMake-d358cf5cc4d70f730873646ae95bdb0c637db262.zip
CMake-d358cf5cc4d70f730873646ae95bdb0c637db262.tar.gz
CMake-d358cf5cc4d70f730873646ae95bdb0c637db262.tar.bz2
add 2nd, more powerful mode to find_package_handle_standard_args()
This additional mode also supports version checking and should be easily extendible, e.g. for COMPONENT stuff. Updated FindBISON.cmake as first user of this new mode. Docs updated. Alex
Diffstat (limited to 'Modules/FindBISON.cmake')
-rw-r--r--Modules/FindBISON.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindBISON.cmake b/Modules/FindBISON.cmake
index b604d0b..b1b5010 100644
--- a/Modules/FindBISON.cmake
+++ b/Modules/FindBISON.cmake
@@ -5,6 +5,9 @@
# BISON_VERSION - version of bison
# BISON_FOUND - true if the program was found
#
+# The minimum required version of bison can be specified using the
+# standard CMake syntax, e.g. find_package(BISON 2.1.3)
+#
# If bison is found, the module defines the macros:
# BISON_TARGET(<Name> <YaccInput> <CodeOutput> [VERBOSE <file>]
# [COMPILE_FLAGS <string>])
@@ -149,6 +152,7 @@ IF(BISON_EXECUTABLE)
ENDIF(BISON_EXECUTABLE)
INCLUDE(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(BISON DEFAULT_MSG BISON_EXECUTABLE)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(BISON REQUIRED_VARS BISON_EXECUTABLE
+ VERSION_VAR BISON_VERSION)
# FindBISON.cmake ends here