Re: [CMake] The CMake bug tracker and "the backlog" of unresolved issues

2011-02-04 Thread Michael Hertling
On 02/03/2011 11:34 PM, David Cole wrote: > Hello CMakers, > > The CMake issue tracker is located at: > http://public.kitware.com/Bug > > All of the issues except for the most recent 15 or so have been assigned and > looked at by at least one CMake developer at one point in each issue's > history

Re: [CMake] CMake Error: Error required internal CMake variable not set

2011-02-04 Thread Alexander Neundorf
On Friday 04 February 2011, Enrique Izaguirre wrote: > Thanks Alexander, > Seems that it doesn't have much information but here it is: > > # cmake -DCMAKE_TOOLCHAIN_FILE=../Toolchain-linuxcpp.cmake .. > System name is: > Linux > The Top directory is: > /home/x0148488/omapflash > Adding subdirectory

Re: [CMake] CMake Error: Error required internal CMake variable not set

2011-02-04 Thread Enrique Izaguirre
Thanks Alexander, Seems that it doesn't have much information but here it is: # cmake -DCMAKE_TOOLCHAIN_FILE=../Toolchain-linuxcpp.cmake .. System name is: Linux The Top directory is: /home/x0148488/omapflash Adding subdirectory comdriver... Entering comdriver's CMakeLists Now trying to find AdbWi

Re: [CMake] CMake Error: Error required internal CMake variable not set

2011-02-04 Thread Alexander Neundorf
On Friday 04 February 2011, Enrique Izaguirre wrote: > Hello again, > > I am trying to cross-compile from Windows (actually Cygwin) to Linux. > My Toolchain file (Toolchain-linuxcpp.cmake) is as follows: > > SET(CMAKE_SYSTEM_NAME Linux) > > #specify the cross-compiler > set (CMAKE_C_COMPILER /bin/g

[CMake] CMake Error: Error required internal CMake variable not set

2011-02-04 Thread Enrique Izaguirre
Hello again, I am trying to cross-compile from Windows (actually Cygwin) to Linux. My Toolchain file (Toolchain-linuxcpp.cmake) is as follows: SET(CMAKE_SYSTEM_NAME Linux) #specify the cross-compiler set (CMAKE_C_COMPILER /bin/gcc-linux) set (CMAKE_CXX_COMPILER /bin/g++-linux) After doing the

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] FIND sub-command to the STRING command

2011-02-04 Thread Tim Hütz
Hey Michael, thanks for the information. Than I'll write some unit tests and attach them too :) Best, Tim Am 04.02.2011 um 16:38 schrieb Michael Wild: > Very cool. > > I think creating a ticket and attaching the patches (or even better, > posting a URL to a public GIT branch) would be best. I

Re: [CMake] FIND sub-command to the STRING command

2011-02-04 Thread Michael Wild
Very cool. I think creating a ticket and attaching the patches (or even better, posting a URL to a public GIT branch) would be best. In order for this feature to be included by Kitware, you'd also need to provide unit tests. Michael On 02/04/2011 04:31 PM, Tim Hütz wrote: > Ok, I've implemented

Re: [CMake] FIND sub-command to the STRING command

2011-02-04 Thread Tim Hütz
Ok, I've implemented a forward search (finds the first occurrence of the substring) and a reverse search (which finds the last occurrence of a substring). Should I open a ticket (with adding the required paches) for suggesting this for one of the next CMake releases or how should I proceed? The

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] FIND sub-command to the STRING command

2011-02-04 Thread Michael Wild
Exactly. The single-character matching would then just be a special case. If you want to get fancy, having a string(FIND REGEX) command would also be nice ;-) Michael On 02/04/2011 03:31 PM, Tim Hütz wrote: > Mhh, okay. With substring matching you mean that I can get the position of > the first

Re: [CMake] FIND sub-command to the STRING command

2011-02-04 Thread Tim Hütz
Mhh, okay. With substring matching you mean that I can get the position of the first occurrence of a word or sub-sentence, am I right? Am 04.02.2011 um 13:32 schrieb Michael Wild: > On 02/04/2011 12:49 PM, Tim Hütz wrote: >> I don't think that the speed-factor was important in this case. A comp

Re: [CMake] FindTCL.cmake has a problem?

2011-02-04 Thread Michael Hertling
On 02/03/2011 04:10 PM, kent williams wrote: > Unfortunately, I can't provide this because we had to get the builds > running, and installed the proper packages. But I don't think I was > imagining things. Far be it from me to impute this, but your report contains fairly little information to inv

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

2011-02-04 Thread Martin O'Brien
You might want to take a look at this CL options: -fp -Qfast_transcendentals -QIfist -Qimprecise_fwaits -Qsafe_fp_loads You might give -fp:except a try, not that I have any idea of whether it will help or not. mm -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cma

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
Yes, The program does things like computing epsilon and their functions, then printing them to std output... from where I intercept them and save in a .h file. Works fine on Linux. Any way to fix it on Windows? Thanks, Dominik On Fri, Feb 4, 2011 at 1:41 PM, Martin O'Brien wrote: > Are you doin

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

2011-02-04 Thread Martin O'Brien
Are you doing something with floating point? mm -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Eric Noulard Sent: Friday, February 04, 2011 7:13 AM To: Dominik Szczerba Cc: CMake mailing list Subject: Re: [CMake] try_compile generates ass

Re: [CMake] FIND sub-command to the STRING command

2011-02-04 Thread Michael Wild
On 02/04/2011 12:49 PM, Tim Hütz wrote: > I don't think that the speed-factor was important in this case. A complete > CMake run takes about 25 seconds to run (in my case) and I see no influence > in the processing time with my suggested patch or the regular expression > sample provided by Micha

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

Re: [CMake] FIND sub-command to the STRING command

2011-02-04 Thread Tim Hütz
I don't think that the speed-factor was important in this case. A complete CMake run takes about 25 seconds to run (in my case) and I see no influence in the processing time with my suggested patch or the regular expression sample provided by Michael. I thought that my solution is a bit more int

[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

Re: [CMake] FIND sub-command to the STRING command

2011-02-04 Thread SF Markus Elfring
mhh, yeah, thats a good idea. Ok, I'll use this for doing a "STRING( FIND ...)" :) It was just an idea to share this patch with you, but you're right. Its easier doing this with regular expressions. Can it be that your implementation was faster than a complete regex application for your use c

Re: [CMake] FIND sub-command to the STRING command

2011-02-04 Thread Tim Hütz
Hey, mhh, yeah, thats a good idea. Ok, I'll use this for doing a "STRING( FIND ...)" :) It was just an idea to share this patch with you, but you're right. Its easier doing this with regular expressions. Regards, Tim Am 04.02.2011 um 10:56 schrieb Michael Wild: > On 02/04/2011 10:40 AM, Tim H

Re: [CMake] FIND sub-command to the STRING command

2011-02-04 Thread Michael Wild
On 02/04/2011 10:40 AM, Tim Hütz wrote: > Hello, > > recently I was searching for a CMake option to get the position of a single > character (first appearance) out of a string. As I found nothing which could > provide me an easy solution, I pulled the latest development version and > added a FI

[CMake] FIND sub-command to the STRING command

2011-02-04 Thread Tim Hütz
Hello, recently I was searching for a CMake option to get the position of a single character (first appearance) out of a string. As I found nothing which could provide me an easy solution, I pulled the latest development version and added a FIND sub-command to the STRING command. I don't know i

Re: [CMake] The CMake bug tracker and "the backlog" of unresolved issues

2011-02-04 Thread Eric Noulard
2011/2/4 Tyler Roscoe : > (removing cmake-developers; cross-posting felt wrong) > > On Thu, Feb 03, 2011 at 05:34:45PM -0500, David Cole wrote: >> Since we do not have a status of "backlog" -- but we don't really use the >> status values of "acknowledged" or "confirmed" very much, I am thinking we

Re: [CMake] [cmake-developers] The CMake bug tracker and "the backlog" of unresolved issues

2011-02-04 Thread Eric Noulard
2011/2/3 David Cole : > Hello CMakers, > > The CMake issue tracker is located at: > http://public.kitware.com/Bug > > All of the issues except for the most recent 15 or so have been assigned and > looked at by at least one CMake developer at one point in each issue's > history. However, not all iss