Hi, There are a few variables: CMAKE_SYSTEM, CMAKE_HOST_UNIX, WIN32, etc but not as accurate as you seem to need.
http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_SYSTEM You'd need to take CMAKE_SYSTEM, then refine it through your own knowledge of the platform. On Tue, Nov 29, 2011 at 3:30 PM, Laszlo Papp <[email protected]> wrote: > Hi, > > Are there any modules to realize the fact what platform I build on top > of ? I could imagine something like > Find{Harmattan,Fremantle,Maemo,MeeGo,Tizen,AnyPlatform}.cmake in wider > usage. > > An example for using such a feature: > I would like to set something according to the actual platform, like > which compilation unit to build (like the relevant standalone only for > that given platform) and so on. -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
