mirror of https://github.com/WerWolv/ImHex.git
build: Remove unavailable warning flags from gcc builds
This commit is contained in:
parent
4a331c0331
commit
3f316e42f2
|
@ -575,7 +575,7 @@ macro(setupCompilerFlags target)
|
|||
set(IMHEX_CXX_FLAGS "-fexceptions -frtti")
|
||||
|
||||
# Disable some warnings
|
||||
set(IMHEX_C_CXX_FLAGS "-Wno-unknown-warning-option -Wno-array-bounds -Wno-deprecated-declarations -Wno-unknown-pragmas")
|
||||
set(IMHEX_C_CXX_FLAGS "-Wno-array-bounds -Wno-deprecated-declarations -Wno-unknown-pragmas")
|
||||
endif()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||||
|
@ -588,6 +588,7 @@ macro(setupCompilerFlags target)
|
|||
execute_process(COMMAND brew --prefix llvm OUTPUT_VARIABLE LLVM_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${LLVM_PREFIX}/lib/c++")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${LLVM_PREFIX}/lib/c++")
|
||||
set(IMHEX_C_CXX_FLAGS "-Wno-unknown-warning-option")
|
||||
endif()
|
||||
|
||||
# Disable some warnings for gcc
|
||||
|
|
|
@ -20,7 +20,9 @@ if (NOT IMHEX_EXTERNAL_PLUGIN_BUILD)
|
|||
include/misc/freetype
|
||||
)
|
||||
|
||||
target_compile_options(imgui_imgui PRIVATE -Wno-unknown-warning-option)
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
target_compile_options(imgui_imgui PRIVATE -Wno-unknown-warning-option)
|
||||
endif()
|
||||
|
||||
find_package(Freetype REQUIRED)
|
||||
|
||||
|
|
Loading…
Reference in New Issue