Skip to content

Commit

Permalink
build fix for socket library
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Jul 9, 2021
1 parent d30bf38 commit a0badc9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/c_benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@ find_package(benchmark REQUIRED)
# need -Wno-pedantic, for two reasons:
# incompatibility in older libbenchmark, https://github.com/google/benchmark/issues/494#issuecomment-502444478
# PRIu64 macros without spaces around are invalid C++ (c.f. the C++11 suffixes feature)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX_STANDARD_FLAGS} ${SANITIZE_FLAGS} -Wno-pedantic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX_STANDARD_FLAGS} ${SANITIZE_FLAGS} -Wno-pedantic -Wno-unused-function")

add_executable(c-benchmarks
../c_unittests/helpers.cpp
benchmarks_main.cpp
bm_add_links.cpp
echo_server.cpp
PracticalSocket.cpp
PracticalSocket.h
echo_server.h)
target_link_libraries(c-benchmarks qpid-dispatch benchmark pthread qpid-dispatch)
socket_utils.cpp
socket_utils.h
echo_server.h
$<TARGET_OBJECTS:qpid-dispatch> Socket.cpp Socket.h UDPSocket.cpp UDPSocket.h TCPServerSocket.cpp TCPServerSocket.h TCPSocket.cpp TCPSocket.h SocketException.cpp SocketException.h)
target_link_libraries(c-benchmarks qpid-dispatch-libraries benchmark pthread ${LIBWEBSOCKETS_LIBRARIES})

file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/minimal_silent.conf DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/tcp_benchmarks.conf DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
Expand Down

0 comments on commit a0badc9

Please sign in to comment.