diff --git a/iceoryx_binding_c/test/CMakeLists.txt b/iceoryx_binding_c/test/CMakeLists.txt index add26ab3ef6..342d02f64d9 100644 --- a/iceoryx_binding_c/test/CMakeLists.txt +++ b/iceoryx_binding_c/test/CMakeLists.txt @@ -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 + +