[cmake-developers] Watcom updates in 3.1 break linking usable code

Brad King brad.king at kitware.com
Mon Nov 3 08:57:51 EST 2014


On 11/01/2014 07:26 PM, J Decker wrote:
> Should add version ... also in windows-wcl386.cmake
> 
>   set(WATCOM20)
>   ...
>     if("${_compiler_version}" VERSION_EQUAL 2.0)
>       set(WATCOM20 1)
>     endif()

The old WATCOM1* names are kept for compatibility, but new code
should use CMAKE_CXX_COMPILER_ID and CMAKE_CXX_COMPILER_VERSION
which are set automatically.  The old variables were never
documented anyway.

-Brad



More information about the cmake-developers mailing list