Skip to content

Commit d2ff805

Browse files
author
Aliaksandr Adziareika
committed
Disable unknown warning option for Clang < 10
1 parent e3727fb commit d2ff805

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
3333
opendaq_common_compile_targets_settings()
3434
opendaq_setup_compiler_flags(${REPO_OPTION_PREFIX})
3535

36+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10)
37+
add_compile_options(-Wno-unknown-warning-option)
38+
endif()
39+
3640
if (${REPO_OPTION_PREFIX}_ENABLE_TESTS)
3741
message(STATUS "Unit tests in ${REPO_NAME} are ENABLED")
3842
set(OPENDAQ_ENABLE_TEST_UTILS ON CACHE BOOL "Enable testing utils library")

0 commit comments

Comments
 (0)