[CMake] CMAKE_SYSTEM not available

Dieter Oberkofler doberkofler.lists at gmail.com
Tue Sep 29 13:42:09 EDT 2009


The installation looks ok but I guess I just found out what is wrong.
CMAKE_SYSTEM is only available after having used the PROJECT command.
Is this really a needed and required dependency?
-Dieter

> -----Original Message-----
> From: Tyler Roscoe [mailto:tyler at cryptio.net]
> Sent: Tuesday, September 29, 2009 18:36
> To: Dieter Oberkofler
> Cc: cmake at cmake.org
> Subject: Re: [CMake] CMAKE_SYSTEM not available
> 
> On Tue, Sep 29, 2009 at 06:16:23PM +0200, Dieter Oberkofler wrote:
> > I seem unable to get/use the CMAKE_SYSTEM variable using CMake 2.6.4
> on the
> > Windows and Apple platform.
> > MESSAGE("CMAKE_SYSTEM=(" ${CMAKE_SYSTEM} ")") just shows an empty
> string
> > similar as does also CMAKE_SYSTEM_NAME, CMAKE_SYSTEM_VERSION and
> > CMAKE_SYSTEM_PROCESSOR.
> 
> Maybe a bad install? Try cmake --trace and see if that reveals any
> errors/failures.
> 
> tyler



More information about the CMake mailing list