We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e901281 commit ace3232Copy full SHA for ace3232
CMakeLists.txt
@@ -3,7 +3,11 @@ project(protocolConverter)
3
4
set(CMAKE_CXX_STANDARD 17)
5
6
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -pedantic -Werror=unused-result")
+if (MSVC)
7
+ add_compile_options(/W3)
8
+else()
9
+ add_compile_options(-Wall -Wextra -Werror -pedantic)
10
+endif()
11
12
option(MODBUS_EXAMPLE "Build example program" OFF)
13
option(MODBUS_TESTS "Build tests" OFF)
0 commit comments