diff --git a/CMakeLists.txt b/CMakeLists.txt index 72e6550b5c..2923f932d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -200,6 +200,8 @@ find_package(Threads) if(DEFINED WARNING_C_FLAGS) set(CMAKE_C_FLAGS "${WARNING_C_FLAGS} ${CMAKE_C_FLAGS}") +elseif(CMAKE_C_COMPILER_ID STREQUAL "OpenWatcom") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -wx -wcd=202") elseif(WIN32) # Windows cl.exe does not support the -Wextra, -Wno-unused and -Werror flags. set(CMAKE_C_FLAGS "-Wall ${CMAKE_C_FLAGS}")