diff --git a/frontends/slang/CMakeLists.txt b/frontends/slang/CMakeLists.txt index 850b8d26f..8b668e93c 100644 --- a/frontends/slang/CMakeLists.txt +++ b/frontends/slang/CMakeLists.txt @@ -26,6 +26,9 @@ yosys_frontend(slang lib/src/variables.cc lib/src/variables.h ${CMAKE_CURRENT_BINARY_DIR}/version.h + DEFINITIONS + YOSYS_MAJOR=${YOSYS_VERSION_MAJOR} + YOSYS_MINOR=${YOSYS_VERSION_MINOR} ENABLE_IF YOSYS_ENABLE_SLANG INCLUDE_DIRS