[CMake] CMAKE_SYSTEM not available
Tyler Roscoe
tyler at cryptio.net
Tue Sep 29 13:45:02 EDT 2009
On Tue, Sep 29, 2009 at 07:42:09PM +0200, Dieter Oberkofler wrote:
> 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?
Is there some reason you want to avoid calling project()?
project() sets up a bunch of stuff. I guess you could try to call all
the relevant CMake modules yourself, but just putting a project(tmp) at
the top of your CMakeLists seems like a pretty good solution to me.
tyler
More information about the CMake
mailing list