[CMAKE] Fix GCC -fstack-protector usage

This commit is contained in:
Jérôme Gardou 2020-12-31 17:56:39 +01:00
parent a853102a7b
commit c8d07514c8
15 changed files with 121 additions and 35 deletions

View file

@ -4,7 +4,7 @@ include_directories(${REACTOS_SOURCE_DIR}/win32ss)
spec2def(win32u.dll win32u_ros.spec ADD_IMPORTLIB)
add_asm_files(win32u_ros_asm sys-stubs.S)
add_library(win32u MODULE
add_library(win32u MODULE
main.c
${win32u_ros_asm}
${CMAKE_CURRENT_BINARY_DIR}/win32u.def)
@ -12,3 +12,7 @@ add_library(win32u MODULE
set_module_type(win32u module)
add_dependencies(win32u psdk)
add_rostests_file(TARGET win32u)
if (STACK_PROTECTOR)
target_compile_options(win32u PRIVATE -fno-stack-protector)
endif()