Re: [CMake] try_compile generates assertion failure in MSVC 2010

2011-02-04 Thread Dominik Szczerba
No, I was wrong. It DOES work with ADD_EXECUTABLE but in MSVC2008, but not MSVC 2010. It also fails with ADD_EXECUTABLE equally in the latter, so try_run is probably innocent. So it really looks like another MSVC 2010 improvement. I guess I should file a bug with MSVC. But I also guess I can equal

Re: [CMake] try_compile generates assertion failure in MSVC 2010

2011-02-04 Thread Dominik Szczerba
Hmmm, there IS still something cmake related... If I just ADD_EXECUTABLE on my configure file, and add its building and execution as a depedance to building my library (add_custom_target, add_dependencies), it will compile and run with no crash... (only each time, which should not be the case for e

Re: [CMake] try_compile generates assertion failure in MSVC 2010

2011-02-04 Thread Dominik Szczerba
Many thanks for your feedback. Update: - the proposed compiler switches do not solve the issue. Neither does /fp:strict - bluntly ignoring the failing assertion (need to click twice) seems to still produce some output. A bit scary though, no idea if the numbers can be trusted... - Indeed, the unde

Re: [CMake] try_compile generates assertion failure in MSVC 2010

2011-02-04 Thread Martin O'Brien
...@cmake.org] On Behalf Of Dominik Szczerba Sent: Friday, February 04, 2011 7:53 AM To: Eric Noulard Cc: CMake mailing list Subject: Re: [CMake] try_compile generates assertion failure in MSVC 2010 Sample code: // foo and others computed as a function of epsilon, also computed printf ("static d

Re: [CMake] try_compile generates assertion failure in MSVC 2010

2011-02-04 Thread Dominik Szczerba
Sample code: // foo and others computed as a function of epsilon, also computed printf ("static double foo = %f;\n", foo); I have not tried other compilers on Windows, the project I am working on has to compile with MSVC... Any hints are welcome. Regards, Dominik On Fri, Feb 4, 2011 at 1:13 PM

Re: [CMake] try_compile generates assertion failure in MSVC 2010

2011-02-04 Thread Dominik Szczerba
ling list > Subject: Re: [CMake] try_compile generates assertion failure in MSVC 2010 > > 2011/2/4 Dominik Szczerba : >> I use try_compile to configure my project and it works fine on linux. >> On Windows I get a lovely assertion failure, when calling cmake from >> VC comm

Re: [CMake] try_compile generates assertion failure in MSVC 2010

2011-02-04 Thread Martin O'Brien
assertion failure in MSVC 2010 2011/2/4 Dominik Szczerba : > I use try_compile to configure my project and it works fine on linux. > On Windows I get a lovely assertion failure, when calling cmake from > VC command line: > > (typos possible, typed from a popup window) > > D

Re: [CMake] try_compile generates assertion failure in MSVC 2010

2011-02-04 Thread Eric Noulard
2011/2/4 Dominik Szczerba : > I use try_compile to configure my project and it works fine on linux. > On Windows I get a lovely assertion failure, when calling cmake from > VC command line: > > (typos possible, typed from a popup window) > > Debug Assertion Failed! > Program: > .\cmTryC

[CMake] try_compile generates assertion failure in MSVC 2010

2011-02-04 Thread Dominik Szczerba
I use try_compile to configure my project and it works fine on linux. On Windows I get a lovely assertion failure, when calling cmake from VC command line: (typos possible, typed from a popup window) Debug Assertion Failed! Program: .\cmTryCompileExec.exe File: f:\dd\vctools\crt_bld\s