Update warning settings
This commit is contained in:
@@ -13,11 +13,8 @@ function(SetOptimisationSettings)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(SetWarningSettings TARGET)
|
function(SetWarningSettings TARGET)
|
||||||
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas" PARENT_SCOPE)
|
|
||||||
endif ()
|
|
||||||
if (LINUX)
|
if (LINUX)
|
||||||
target_compile_options(${TARGET} PRIVATE -Wall)
|
target_compile_options(${TARGET} PRIVATE -Wall -Wno-unknown-pragmas)
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user