diff --git a/cmake/modules/IrisSCTP.cmake b/cmake/modules/IrisSCTP.cmake index 42226968..b2a590b4 100644 --- a/cmake/modules/IrisSCTP.cmake +++ b/cmake/modules/IrisSCTP.cmake @@ -37,8 +37,8 @@ else() -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}) - if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - list(APPEND USRSCTP_BUILD_OPTIONS -DCMAKE_C_FLAGS="-Wno-maybe-uninitialized") + if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + list(APPEND USRSCTP_BUILD_OPTIONS "-DCMAKE_C_FLAGS=-Wno-maybe-uninitialized -Wno-unused-but-set-variable") endif() if (EXISTS ${USRSCTP_SOURCE_DIR}) message(STATUS "USRSCTP: found bundled sources")