3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-14 19:25:40 +00:00

CMake: slang: honor YOSYS_WITHOUT_SLANG flag

When `YOSYS_WITHOUT_SLANG` (or, more recently, `YOSYS_WITH_PKG_DEPS`)
are enabled, do not attempt to build slang frontend. This allows for
successful configuration and build with disabled slang when the
vendored subrepo is also missing.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
This commit is contained in:
Gabriel Somlo 2026-07-12 10:45:25 -04:00
parent 2b0493e022
commit 619b8edeb8

View file

@ -6,6 +6,8 @@ add_subdirectory(json)
add_subdirectory(liberty)
add_subdirectory(rpc)
add_subdirectory(rtlil)
add_subdirectory(slang)
if (NOT (YOSYS_WITH_PKG_DEPS OR YOSYS_WITHOUT_SLANG))
add_subdirectory(slang)
endif()
add_subdirectory(verific)
add_subdirectory(verilog)