[cmake-developers] Request for comment [PATCH] add full cross-compile support for Open Watcom toolchain

Brad King brad.king at kitware.com
Wed Mar 19 10:51:22 EDT 2014


On 03/19/2014 09:13 AM, Jiri Malak wrote:
> New corrected version of patches.

Thanks for working on this.

Tests like

 +elseif("${CMAKE_GENERATOR}" MATCHES "Watcom WMake")

do not belong in the generic platform detection files.
One should be able to use the Watcom compilers with any
of the generators.  Also one should be able to use the
WMake generator with a non-Watcom compiler if desired.

One should set the CC and CXX environment variables to
point at the Watcom compiler if that is the compiler to
be used.  The CMAKE_GENERATOR_CC preference can be
generalized to a ;-list of names if needed to choose the
Watcom compiler by default with the WMake generator.

Thanks,
-Brad




More information about the cmake-developers mailing list