|
@@ -18,7 +18,7 @@ endif()
|
|
if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
|
if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
|
add_definitions(-std=c99 -pipe -Wall -Wextra -Werror -Wformat
|
|
add_definitions(-std=c99 -pipe -Wall -Wextra -Werror -Wformat
|
|
-Wno-unused-parameter -Wno-unused-function -Wno-unused-label -Wpointer-arith -Wreturn-type -Wsign-compare -Wmultichar
|
|
-Wno-unused-parameter -Wno-unused-function -Wno-unused-label -Wpointer-arith -Wreturn-type -Wsign-compare -Wmultichar
|
|
- -Wshadow -Wcast-align -Wcast-qual -Wmissing-prototypes -Wstrict-prototypes # -Wconversion
|
|
|
|
|
|
+ -Wshadow -Wcast-qual -Wmissing-prototypes -Wstrict-prototypes # -Wconversion
|
|
-Winit-self -Wuninitialized -Wno-deprecated -Wformat-security -ffunction-sections -fdata-sections)
|
|
-Winit-self -Wuninitialized -Wno-deprecated -Wformat-security -ffunction-sections -fdata-sections)
|
|
if(NOT "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
|
if(NOT "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
|
add_definitions(-Wformat-nonliteral)
|
|
add_definitions(-Wformat-nonliteral)
|
|
@@ -154,7 +154,7 @@ endif()
|
|
option(EXAMPLESERVER "Build a test server" OFF)
|
|
option(EXAMPLESERVER "Build a test server" OFF)
|
|
if(EXAMPLESERVER)
|
|
if(EXAMPLESERVER)
|
|
add_executable(exampleServer examples/server.c examples/networklayer_tcp.c examples/logger_stdout.c ${exported_headers} ${generated_headers})
|
|
add_executable(exampleServer examples/server.c examples/networklayer_tcp.c examples/logger_stdout.c ${exported_headers} ${generated_headers})
|
|
- target_link_libraries(exampleServer open62541)
|
|
|
|
|
|
+ target_link_libraries(exampleServer open62541-static)
|
|
if(WIN32)
|
|
if(WIN32)
|
|
target_link_libraries(exampleServer ws2_32)
|
|
target_link_libraries(exampleServer ws2_32)
|
|
else()
|
|
else()
|