Skip to content

Commit f2f47b1

Browse files
committed
Some sockpp headers generate warnings, so treat them as system headers to suppress warnings
1 parent 585b5ab commit f2f47b1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libs/EXTERNAL/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,10 @@ target_include_directories(Catch2
137137
$<INSTALL_INTERFACE:include>
138138
)
139139

140+
# Some sockpp headers generate warnings, so treat them as system headers to suppress warnings
141+
target_include_directories(sockpp-static
142+
SYSTEM
143+
PUBLIC
144+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/sockpp/include>
145+
$<INSTALL_INTERFACE:include>
146+
)

0 commit comments

Comments
 (0)