mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 23:42:56 +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
|
@ -20,15 +20,12 @@ list(APPEND SOURCE
|
|||
add_library(cdrom MODULE ${SOURCE} cdrom.rc)
|
||||
set_module_type(cdrom kernelmodedriver)
|
||||
|
||||
if(GCC OR CLANG)
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
target_compile_options(cdrom PRIVATE -Wno-format -Wno-unused-variable -Wno-pointer-sign)
|
||||
endif()
|
||||
|
||||
if(GCC)
|
||||
target_compile_options(cdrom PRIVATE -Wno-unknown-pragmas -Wno-incompatible-pointer-types -Wno-switch)
|
||||
endif()
|
||||
|
||||
if(CLANG)
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
target_compile_options(cdrom PRIVATE -Wno-enum-conversion -Wno-tautological-constant-compare)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ target_compile_definitions(classpnp PRIVATE
|
|||
CLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFER_SIZE=512
|
||||
CLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFERS=512)
|
||||
|
||||
if(GCC)
|
||||
if(NOT MSVC)
|
||||
target_compile_options(classpnp PRIVATE -Wno-pointer-to-int-cast -Wno-switch)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -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