From adf26d41d6997161e6fc461c943408cf1323aceb Mon Sep 17 00:00:00 2001 From: Avia Avraham <145359432+AviaAv@users.noreply.github.com> Date: Mon, 30 Sep 2024 18:25:56 +0300 Subject: [PATCH] try ignore C# warnings --- CMake/unix_config.cmake | 2 -- CMake/windows_config.cmake | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CMake/unix_config.cmake b/CMake/unix_config.cmake index 9634355f4e..ca923fd92d 100644 --- a/CMake/unix_config.cmake +++ b/CMake/unix_config.cmake @@ -99,8 +99,6 @@ macro(os_set_flags) set_directory_properties(PROPERTIES DIRECTORY third-party/ COMPILE_OPTIONS "-w") set_source_files_properties(third-party/*.* PROPERTIES COMPILE_OPTIONS "-w") - set_directory_properties(PROPERTIES DIRECTORY wrappers/ COMPILE_OPTIONS "-w") - set_source_files_properties(wrappers/*.* PROPERTIES COMPILE_OPTIONS "-w") ################# diff --git a/CMake/windows_config.cmake b/CMake/windows_config.cmake index 18c33c7f4a..ca1b7a1aac 100644 --- a/CMake/windows_config.cmake +++ b/CMake/windows_config.cmake @@ -68,11 +68,9 @@ macro(os_set_flags) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ADDITIONAL_COMPILER_FLAGS}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ADDITIONAL_COMPILER_FLAGS}") - + set(CMAKE_CSharp_FLAGS "${CMAKE_CSharp_FLAGS} /nowarn") # disable warnings for C# set_directory_properties(PROPERTIES DIRECTORY third-party/ COMPILE_OPTIONS "/W0") set_source_files_properties(third-party/*.* PROPERTIES COMPILE_OPTIONS "/W0") - set_directory_properties(PROPERTIES DIRECTORY wrappers/ COMPILE_OPTIONS "/W0") - set_source_files_properties(wrappers/*.* PROPERTIES COMPILE_OPTIONS "/W0") #################