Skip to content

Commit

Permalink
iox-eclipse-iceoryx#1287 Reintroduce compiler warning suppression for…
Browse files Browse the repository at this point in the history
… binding_c

Signed-off-by: Christian Eltzschig <me@elchris.org>
  • Loading branch information
elfenpiff committed May 13, 2022
1 parent 40e373d commit 54e6040
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions iceoryx_binding_c/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,20 @@ iox_add_executable( TARGET ${PROJECT_PREFIX}_moduletests
LIBS_APPLE dl
LIBS_LINUX dl
)

## TODO: iox-#1287 remove those compiler warning exceptions
if(LINUX)
set(TEST_LINK_LIBS ${TEST_LINK_LIBS} acl dl pthread rt)
set(TEST_CXX_FLAGS PRIVATE ${ICEORYX_WARNINGS} ${ICEORYX_SANITIZER_FLAGS} -Wno-pedantic -Wno-conversion) # -Wpedantic results in errors at the time mocks
elseif(QNX)
set(TEST_CXX_FLAGS PRIVATE ${ICEORYX_WARNINGS} ${ICEORYX_SANITIZER_FLAGS} -Wno-pedantic -Wno-conversion)
elseif(APPLE)
set(TEST_CXX_FLAGS PRIVATE ${ICEORYX_WARNINGS} ${ICEORYX_SANITIZER_FLAGS} -Wno-pedantic -Wno-conversion)
elseif(WIN32)
set(TEST_CXX_FLAGS PRIVATE ${ICEORYX_WARNINGS} /bigobj)
endif()

target_compile_options(${PROJECT_PREFIX}_moduletests PRIVATE ${TEST_CXX_FLAGS})
## TODO: END iox-#1287 remove those compiler warning exceptions


0 comments on commit 54e6040

Please sign in to comment.