[CMake] CMAKE_TOOLCHAIN_FILE / testing with 'wine'

Alexander Neundorf a.neundorf-work at gmx.net
Tue Aug 19 16:19:53 EDT 2008


On Tuesday 19 August 2008, Mathieu Malaterre wrote:
...
>   Is this the correct way of doing it ?
> 1. The way to differenciate a cross compiled project from a regular
> cmake one is by checking the value of CMAKE_TOOLCHAIN_FILE

IF(CMAKE_CROSSCOMPILING)

(since you could in theory also set up the handful of required variables in 
another way).

> 2. I can always safely append '.exe' to the executable name ?

Better use ${CMAKE_EXECUTABLE_SUFFIX}

Alex


More information about the CMake mailing list