[cmake-developers] CheckSymbolExists is unreliable

Brad King brad.king at kitware.com
Fri Jan 6 14:50:18 EST 2012


On 1/6/2012 2:49 PM, Brad King wrote:
> On 1/6/2012 1:55 PM, Rolf Eike Beer wrote:
>> The difference is that my test only does configuration and does not build an
>> executable, so the --build-and-test stuff will not work.
>
> Lots of tests are like that. They just create a tiny dummy executable
> to build and link. That's why I pointed at CheckTypeSize as an example.

As a separate topic after this, you could modify ADD_TEST_MACRO to support
not padding the --test-command option for tests like this.

-Brad



More information about the cmake-developers mailing list