mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:02:56 +00:00
[CMAKE] Some options are only supported by GCC, don't use them for clang
These are (so far): -Wno-format-overflow -Wno-nonnull-compare -Wno-old-style-declaration -Wno-unused-but-set-variable
This commit is contained in:
parent
959729f6ee
commit
74ec94e12c
35 changed files with 99 additions and 57 deletions
|
@ -4,7 +4,7 @@ add_executable(symdump symdump.c)
|
|||
set_module_type(symdump win32cui)
|
||||
target_link_libraries(symdump wine)
|
||||
add_importlibs(symdump dbghelp shlwapi msvcrt kernel32 ntdll)
|
||||
if(NOT MSVC)
|
||||
target_compile_options(symdump PRIVATE "-Wno-unused-but-set-variable")
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
target_compile_options(symdump PRIVATE -Wno-unused-but-set-variable)
|
||||
endif()
|
||||
add_cd_file(TARGET symdump DESTINATION reactos/system32 FOR all)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue