MantisBT - CMake
View Issue Details
0014793CMakeCMakepublic2014-03-07 04:542016-06-10 14:31
Jens Staal 
Kitware Robot 
normalfeaturealways
closedmoved 
x86_64Arch Linux
 
 
0014793: CMake on Linux can not produce Watcom Wmake files or use Watcom as compiler
Dear all,

I am playing with trying to build ReactOS using Open Watcom (the v2 fork) and would love to be able to do so natively (from Linux) using Open Watcom as a win32 cross compiler instead of MinGW. My forked sources can be found at [1].

Strangely, configuring with CMake either running under Wine or under Windows allows for selecting Watcom as compiler / make file style, but not when run under Linux. Also if CC and CXX is set to the watcom compilers and CMake is told to make "Unix makefiles", CMake detects them during configuration but the actual build falls back to the default cc (gcc).

1: https://github.com/staalmannen/reactos/tree/reactow [^]
* Install Open Watcom on Linux, try to configure a CMake project to use Watcom as compiler / Make file style.

If example sources is the "ReactOW" above, simply do something like:

WATCOM=/opt/watcom bash ../reactos/configure.sh

cd to host-tools
make
cd to reactos
make

you will see that it falls back to gcc.

from a build directory next to the checked out sources.
CMake, compiler, cross compile
Issue History
2014-03-07 04:54Jens StaalNew Issue
2014-03-07 04:56Jens StaalTag Attached: CMake
2014-03-07 04:56Jens StaalTag Attached: compiler
2014-03-07 04:56Jens StaalTag Attached: cross compile
2014-03-10 10:30Brad KingNote Added: 0035356
2014-03-10 10:30Brad KingSeverityminor => feature
2014-03-10 10:30Brad KingStatusnew => backlog
2016-06-10 14:29Kitware RobotNote Added: 0042503
2016-06-10 14:29Kitware RobotStatusbacklog => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0035356)
Brad King   
2014-03-10 10:30   
There is some ongoing discussion on the cmake-developers mailing list:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/9543 [^]

One may join the list here:

 http://www.cmake.org/mailman/listinfo/cmake-developers [^]
(0042503)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.