mirror of
https://github.com/verilator/verilator.git
synced 2025-04-04 19:52:39 +00:00
Fix CMake builds to export VERILATOR_ROOT (#5063)
This commit is contained in:
parent
4f3a816fb0
commit
4202ec2ab2
@ -128,6 +128,7 @@ Marshal Qiao
|
||||
Martin Schmidt
|
||||
Martin Stadler
|
||||
Matthew Ballance
|
||||
Michael Bikovitsky
|
||||
Michael Killough
|
||||
Michaël Lefebvre
|
||||
Michal Czyz
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user