mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:36:21 +00:00
[CMAKE] Elimitate the use of GCC and CLANG variables
This commit is contained in:
parent
6f4be52a1c
commit
f155b9377f
32 changed files with 78 additions and 116 deletions
|
@ -16,11 +16,8 @@ target_compile_definitions(disk PUBLIC
|
|||
_WIN32_WINNT=0x602
|
||||
NTDDI_VERSION=0x06020000) # NTDDI_WIN8
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
target_compile_options(disk PRIVATE -Wno-format -Wno-pointer-sign)
|
||||
endif()
|
||||
|
||||
if(GCC)
|
||||
target_compile_options(disk PRIVATE -Wno-pointer-to-int-cast -Wno-switch)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue