Re: [CMake] help using try_run with custom build type

2009-07-09 Thread George Neill
Hi All, On Wed, Jul 8, 2009 at 2:29 AM, Denis Scherbakov wrote: > >> > It appears to fail because the compiler options do not >> make it in when >> > creating the executable ... is there something silly I >> have missed? >> > Also, I was wondering why TRY_RUN doesn't use the >> default flags >> >

Re: [CMake] help using try_run with custom build type

2009-07-08 Thread George Neill
Hi Denis, On Wed, Jul 8, 2009 at 2:29 AM, Denis Scherbakov wrote: > >> > It appears to fail because the compiler options do not >> make it in when >> > creating the executable ... is there something silly I >> have missed? >> > Also, I was wondering why TRY_RUN doesn't use the >> default flags >>

Re: [CMake] help using try_run with custom build type

2009-07-08 Thread Denis Scherbakov
> > It appears to fail because the compiler options do not > make it in when > > creating the executable ... is there something silly I > have missed? > > Also, I was wondering why TRY_RUN doesn't use the > default flags > > defined from CMAKE_BUILD_TYPE ? > Is this a bug or am I not using TRY_R

Re: [CMake] help using try_run with custom build type

2009-07-07 Thread George Neill
Hi all, On Mon, Jun 29, 2009 at 10:15 PM, George Neill wrote: > Hi folks, > > I apologize for the long email, but, I am having some troubles with > try_run (cmake 2.6.4/sun gcc/Solaris 10).  I have created my own > CMAKE_BUILD_TYPE called TEST and have set CMAKE_C_FLAGS_TEST to "-m64 > -std=c99".

[CMake] help using try_run with custom build type

2009-06-29 Thread George Neill
Hi folks, I apologize for the long email, but, I am having some troubles with try_run (cmake 2.6.4/sun gcc/Solaris 10). I have created my own CMAKE_BUILD_TYPE called TEST and have set CMAKE_C_FLAGS_TEST to "-m64 -std=c99". Here's the .c code I am testing with, -bash-3.00$ cat !$ cat ../platform