Commit 4b47368501321c795d5b54d87a5bab35a21a7940

Steffen Jaeckel 2022-04-28T11:32:32

Merge pull request #530 from lynxluna/feature/watcom-support Add Support For WATCOM compiler flags

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bca46ea..63b62ac 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,6 +46,8 @@ endif()
 # We only differentiate between MSVC and GCC-compatible compilers
 if(MSVC)
     set(LTM_C_FLAGS -W3)
+elseif(WATCOM)
+    set(LTM_C_FLAGS -fo=.obj -oaxt -3r -w3)
 else()
     set(LTM_C_FLAGS -Wall -Wsign-compare -Wextra -Wshadow
                     -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align