Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2023-06-03 13:34:04 +08:00
parent 7ae41c4c9e
commit dea748dd17
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ function(setup_compile_params)
$<$<NOT:$<CONFIG:Debug>>:-mguard=cf> $<$<NOT:$<CONFIG:Debug>>:-mguard=cf>
) )
target_link_options(${__target} PRIVATE target_link_options(${__target} PRIVATE
$<$<NOT:$<CONFIG:Debug>>:-Wl,-mguard=cf> # TODO: Do we need "-Wl," here? $<$<NOT:$<CONFIG:Debug>>:-mguard=cf>
) )
elseif(APPLE OR (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")) elseif(APPLE OR (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
target_compile_options(${__target} PRIVATE target_compile_options(${__target} PRIVATE