mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:45:50 +00:00
[CMAKE] Get rid of replace_compile_flags
Introduce a finer-grained remove_target_compile_option instead
This commit is contained in:
parent
b52fa999eb
commit
7e116f0ef3
27 changed files with 138 additions and 144 deletions
|
@ -4,11 +4,6 @@ remove_definitions(-D_WIN32_IE=0x600)
|
|||
add_definitions(-D__ROS_LONG64__)
|
||||
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
||||
|
||||
if(MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
add_compile_flags("/wd4477")
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
olecallback.c
|
||||
print.c
|
||||
|
@ -22,3 +17,8 @@ set_module_type(wordpad win32gui)
|
|||
target_link_libraries(wordpad wine uuid)
|
||||
add_importlibs(wordpad comdlg32 ole32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32 ntdll)
|
||||
add_cd_file(TARGET wordpad DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
target_compile_options(wordpad PRIVATE /wd4477)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue