Skip to content

Open Watcom V2 CMake build #716

Answered by jmalak
FredEckert asked this question in Q&A
Jul 23, 2021 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

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 ...

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@FredEckert
Comment options

@jmalak
Comment options

@FredEckert
Comment options

@jmalak
Comment options

@FredEckert
Comment options

Answer selected by FredEckert
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants