[CMake] FW: Differentiating CMAKE-driven compiles from product compiles
Phil Smith
phil at voltage.com
Wed Sep 10 09:49:04 EDT 2008
So there's currently no way to do this?
It would eliminate the need for z/OS-specific code in CheckTypeSize.cmake, since the compiler script could force -fascii in that case.
I guess I'll have to do it by filename, which is kinda fugly but doable.
...phsiii
-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Phil Smith
Sent: Friday, September 05, 2008 1:02 PM
To: cmake at cmake.org
Subject: [CMake] Differentiating CMAKE-driven compiles from product compiles
For our cross-compiling, we need to set some "peculiar" compiler options. However, those options make CMake fail when it calls the compiler for CheckTypeSize, testCCompiler, and CheckIncludeFile (what I call the "CMake compiles").
Is there a way to differentiate the options passed on the CMake compiles? I keep peering at CMAKE_BUILD_TYPE, but I don't think that's quite it.
More information about the CMake
mailing list