diff --git a/docs/CONTRIBUTORS b/docs/CONTRIBUTORS index d5e61832f..3d74a7a08 100644 --- a/docs/CONTRIBUTORS +++ b/docs/CONTRIBUTORS @@ -128,6 +128,7 @@ Marshal Qiao Martin Schmidt Martin Stadler Matthew Ballance +Michael Bikovitsky Michael Killough Michaƫl Lefebvre Michal Czyz diff --git a/verilator-config.cmake.in b/verilator-config.cmake.in index bc61bcccf..9132208f1 100644 --- a/verilator-config.cmake.in +++ b/verilator-config.cmake.in @@ -214,7 +214,9 @@ function(verilate TARGET) file(MAKE_DIRECTORY ${VDIR}) - set(VERILATOR_COMMAND "${VERILATOR_BIN}" --compiler ${COMPILER} + set(VERILATOR_COMMAND "${CMAKE_COMMAND}" -E env "VERILATOR_ROOT=${VERILATOR_ROOT}" + -- + "${VERILATOR_BIN}" --compiler ${COMPILER} --prefix ${VERILATE_PREFIX} --Mdir ${VDIR} --make cmake ${VERILATOR_ARGS} ${VERILATE_VERILATOR_ARGS} ${VERILATE_SOURCES})