Open Watcom V2 CMake build #716
-
Hello :-) Does anyone have an example of a cmake toolchain file for cross compiling with open watcom v2? Host: Window10 x64, Target: DOS 32-Bit DOS4G/W. I have scoured the web and studied the cmake docs but I am having trouble making the leap to a clear understanding of how to construct such a toolchain file. I have tried all sorts of things but can't get cmake to successfully build code that builds just fine with wmake and a good old fashioned wmake makefile. Side Note: I am really seeking an out-of-source build system for open watcom v2. cmake seems to be the correct approach for this. If there is any other recommend approach, I would be interested in learning about it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
From CMake version 3.18 OpenWatcom Cross-compile support for DOS, OS/2, Windows and Linux is included in CMake. Below are cross-compilation commands for CMake 3.18 and above (run on Linux or Windows). It supposes configured OW for your host (Windows or Linux). 16-bit DOS Target cmake command 32-bit DOS Target cmake command 16-bit OS2 Target cmake command 32-bit OS2 Target cmake command 32-bit Windows Target cmake command 32-bit Linux Target cmake command |
Beta Was this translation helpful? Give feedback.
-
New page in OW 2.0 Wiki was created OW tools usage with CMake |
Beta Was this translation helpful? Give feedback.
From CMake version 3.18 OpenWatcom Cross-compile support for DOS, OS/2, Windows and Linux is included in CMake.
Details you can see in #687 #599 #594
Below are cross-compilation commands for CMake 3.18 and above (run on Linux or Windows). It supposes configured OW for your host (Windows or Linux).
16-bit DOS Target cmake command
cmake -G "Watcom WMake" -D CMAKE_SYSTEM_NAME=DOS -D CMAKE_SYSTEM_PROCESSOR=I86 ...
32-bit DOS Target cmake command
cmake -G "Watcom WMake" -D CMAKE_SYSTEM_NAME=DOS ...
16-bit OS2 Target cmake command
cmake -G "Watcom WMake" -D CMAKE_SYSTEM_NAME=OS2 -D CMAKE_SYSTEM_PROCESSOR=I86 ...
32-bit OS2 Target cmake command
cmake -G "Watcom WMake" -D CMAKE_SYSTEM_NAME=OS2 ...
…