mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 18:31:49 +00:00
[CMAKE] Fix GCC -fstack-protector usage
This commit is contained in:
parent
a853102a7b
commit
c8d07514c8
15 changed files with 121 additions and 35 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue