Fix CMake bad C identifiers (#3948) (#3951)

This commit is contained in:
Zixi Li 2023-02-10 20:06:05 -05:00 committed by GitHub
parent d34aa10faf
commit 8f87022496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -149,3 +149,4 @@ Yutetsu TAKATSUKASA
Yu-Sheng Lin
Yves Mathieu
Zhanglei Wang
Zixi Li

View File

@ -149,7 +149,7 @@ function(verilate TARGET)
endif()
list(GET VERILATE_SOURCES 0 TOPSRC)
get_filename_component(_SRC_NAME ${TOPSRC} NAME_WE)
set(VERILATE_PREFIX V${_SRC_NAME})
string(MAKE_C_IDENTIFIER V${_SRC_NAME} VERILATE_PREFIX)
endif()
if (VERILATE_TOP_MODULE)