Skip to content

Commit c2205c2

Browse files
authored
CXX-1201 remove extra cmake config (#1237)
1 parent 0f2dc9b commit c2205c2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

examples/CMakeLists.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,6 @@ file(GLOB_RECURSE examples_headers
122122
"*.hh"
123123
)
124124

125-
foreach(source ${api_examples_sources})
126-
add_examples_executable(${source} LIBRARIES mongocxx_target)
127-
128-
# Silence warnings for common patterns in API examples.
129-
set_property (SOURCE ${source} APPEND PROPERTY COMPILE_OPTIONS
130-
# Allow unused variables.
131-
$<$<CXX_COMPILER_ID:AppleClang,Clang,GNU>:-Wno-unused>
132-
$<$<CXX_COMPILER_ID:MSVC>:/wd4189>
133-
134-
# Allow simpler switch statements.
135-
$<$<CXX_COMPILER_ID:AppleClang,Clang,GNU>:-Wno-switch>
136-
)
137-
endforeach()
138125

139126
foreach(source ${bsoncxx_examples_sources})
140127
add_examples_executable(${source} LIBRARIES bsoncxx_target)

0 commit comments

Comments
 (0)