Skip to content

Commit 9e1a2f8

Browse files
committed
try ignore c# warnings
1 parent adf26d4 commit 9e1a2f8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

CMake/windows_config.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ macro(os_set_flags)
6868
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ADDITIONAL_COMPILER_FLAGS}")
6969
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ADDITIONAL_COMPILER_FLAGS}")
7070

71-
set(CMAKE_CSharp_FLAGS "${CMAKE_CSharp_FLAGS} /nowarn") # disable warnings for C#
7271
set_directory_properties(PROPERTIES DIRECTORY third-party/ COMPILE_OPTIONS "/W0")
7372
set_source_files_properties(third-party/*.* PROPERTIES COMPILE_OPTIONS "/W0")
7473

wrappers/csharp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required( VERSION 3.8.0 )
22

33
project(LANGUAGES CSharp)
44
include(CSharpUtilities)
5-
set(CMAKE_CSharp_FLAGS "/langversion:6")
5+
set(CMAKE_CSharp_FLAGS "/langversion:6 /warnnotaserror")
66

77
add_subdirectory(Intel.RealSense)
88
add_subdirectory(tutorial/depth)

0 commit comments

Comments
 (0)