mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 01:35:43 +00:00
[CMAKE] Replace custom scripts in compilerflags with standard ones
- add_target_link_flags changed to target_link_options - add_target_property changed to set_property(... APPEND ...)
This commit is contained in:
parent
233c74e25a
commit
8e1fa03456
12 changed files with 34 additions and 79 deletions
|
@ -83,12 +83,12 @@ set_target_properties(bootmgfw PROPERTIES SUFFIX ".efi")
|
|||
|
||||
if(MSVC)
|
||||
if(ARCH STREQUAL "arm")
|
||||
add_target_link_flags(bootmgfw "/ignore:4078 /ignore:4254 /DRIVER")
|
||||
target_link_options(bootmgfw PRIVATE /ignore:4078 /ignore:4254 /DRIVER)
|
||||
else()
|
||||
add_target_link_flags(bootmgfw "/ignore:4078 /ignore:4254 /DRIVER /DYNAMICBASE:NO /NXCOMPAT:NO /FIXED")
|
||||
target_link_options(bootmgfw PRIVATE /ignore:4078 /ignore:4254 /DRIVER /DYNAMICBASE:NO /NXCOMPAT:NO /FIXED)
|
||||
endif()
|
||||
else()
|
||||
add_target_link_flags(bootmgfw "-Wl,--strip-all,--exclude-all-symbols")
|
||||
target_link_options(bootmgfw PRIVATE "-Wl,--strip-all,--exclude-all-symbols")
|
||||
endif()
|
||||
|
||||
set_image_base(bootmgfw 0x10000)
|
||||
|
@ -130,9 +130,9 @@ add_executable(rosload ${ROSLOAD_BASE_SOURCE} ${rosload_asm})
|
|||
set_target_properties(rosload PROPERTIES SUFFIX ".efi")
|
||||
|
||||
if(MSVC)
|
||||
add_target_link_flags(rosload "/ignore:4078 /ignore:4254 /DRIVER")
|
||||
target_link_options(rosload PRIVATE /ignore:4078 /ignore:4254 /DRIVER)
|
||||
else()
|
||||
add_target_link_flags(rosload "-Wl,--strip-all,--exclude-all-symbols,--dynamicbase,--pic-executable")
|
||||
target_link_options(rosload PRIVATE "-Wl,--strip-all,--exclude-all-symbols,--dynamicbase,--pic-executable")
|
||||
endif()
|
||||
|
||||
set_image_base(rosload 0x10000)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue