diff --git a/cmake/target/CMakeLists.txt b/cmake/target/CMakeLists.txt index 826874f74..4af3de9c8 100644 --- a/cmake/target/CMakeLists.txt +++ b/cmake/target/CMakeLists.txt @@ -79,8 +79,8 @@ foreach(CFSSYM ${${TGTNAME}_STATIC_SYMLIST}) string(REPLACE "," ";" CFSSYM "${CFSSYM}") list(GET CFSSYM 0 SYM_NAME) list(GET CFSSYM 1 SYM_MODULE) - list(APPEND GENERATED_EXTERNS "extern void ${SYM_NAME} (void);\n") - list(APPEND GENERATED_KEYVALS "{ .Name = \"${SYM_NAME}\", .Address = &{SYM_NAME}, .Module = \"${SYM_MODULE}\" },") + list(APPEND GENERATED_EXTERNS "extern void ${SYM_NAME} (void)\;\n") + list(APPEND GENERATED_KEYVALS "{ .Name = \"${SYM_NAME}\", .Address = &${SYM_NAME}, .Module = \"${SYM_MODULE}\" },") endforeach(CFSSYM ${${TGTNAME}_STATIC_SYMLIST}) string(CONCAT GENERATED_FILE_HEADER