YAMBi: Fix error caused by unknown CMake command
@@ -6,16 +6,17 @@ if (DEPENDENCY_PHASE)
list (APPEND CMAKE_PREFIX_PATH
"/usr/local/opt/bison")
endif (APPLE)
+
find_package (Bison 3 QUIET)
+
if (NOT BISON_FOUND)
remove_plugin (yambi "Bison 3 (bison) not found")
- endif (NOT BISON_FOUND)
-
+ else (NOT BISON_FOUND)
bison_target (YAMBI ${CMAKE_CURRENT_SOURCE_DIR}/parser.ypp ${CMAKE_CURRENT_BINARY_DIR}/parser.cpp)
-
if (NOT BISON_YAMBI_DEFINED)
remove_plugin (yambi "Unable to generate parser")
endif (NOT BISON_YAMBI_DEFINED)
+ endif (NOT BISON_FOUND)
set (SOURCE_FILES
convert.hpp
