Re: [CMake] ADD_COMPILE_TEST macro

2008-02-14 Thread Mathieu Malaterre
On Tue, Feb 12, 2008 at 2:10 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > Mathieu Malaterre wrote: > > > > > This is a test... I need to run it just like a normal test. I know > > this sound weird to check for something that do not compile. The > > simpliest case is when I need to trigger a st

Re: [CMake] ADD_COMPILE_TEST macro

2008-02-12 Thread Bill Hoffman
Mathieu Malaterre wrote: This is a test... I need to run it just like a normal test. I know this sound weird to check for something that do not compile. The simpliest case is when I need to trigger a static assert. Another example could be for ITK to check that their itkConceptChecking are actu

Re: [CMake] ADD_COMPILE_TEST macro

2008-02-12 Thread Alexander Neundorf
On Tuesday 12 February 2008, Mathieu Malaterre wrote: > On Feb 11, 2008 6:45 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > > Alexander Neundorf wrote: > > > On Monday 11 February 2008, Mathieu Malaterre wrote: > > >> Hi there, > > >> > > >> I would like to know if anyone has written a ADD_COMPILE

Re: [CMake] ADD_COMPILE_TEST macro

2008-02-11 Thread Mathieu Malaterre
On Feb 11, 2008 6:45 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > Alexander Neundorf wrote: > > On Monday 11 February 2008, Mathieu Malaterre wrote: > >> Hi there, > >> > >> I would like to know if anyone has written a ADD_COMPILE_TEST macro > >> for cmake. Basically I would like to check that s

Re: [CMake] ADD_COMPILE_TEST macro

2008-02-11 Thread Bill Hoffman
Alexander Neundorf wrote: On Monday 11 February 2008, Mathieu Malaterre wrote: Hi there, I would like to know if anyone has written a ADD_COMPILE_TEST macro for cmake. Basically I would like to check that some template instantiation should not compile, while other should. I tried quickly doin

Re: [CMake] ADD_COMPILE_TEST macro

2008-02-11 Thread Alexander Neundorf
On Monday 11 February 2008, Mathieu Malaterre wrote: > Hi there, > > I would like to know if anyone has written a ADD_COMPILE_TEST macro > for cmake. Basically I would like to check that some template > instantiation should not compile, while other should. I tried quickly > doing cmake -P + TRY_C

[CMake] ADD_COMPILE_TEST macro

2008-02-11 Thread Mathieu Malaterre
Hi there, I would like to know if anyone has written a ADD_COMPILE_TEST macro for cmake. Basically I would like to check that some template instantiation should not compile, while other should. I tried quickly doing cmake -P + TRY_COMPILE but I am getting an error : Command TRY_COMPILE not s