Re: [CMake] Iterating empty elements in a list

2013-08-06 Thread Robert Dailey
Sorry for the spam, after posting a solution dawned on me. Here is what I did for anyone else that might need a solution (or care to propose a better one): function( replace_empty_elements out_list in_list ) foreach( item IN LISTS in_list ) if( item STREQUAL "" ) set( item

Re: [CMake] Iterating empty elements in a list

2013-08-06 Thread Robert Dailey
Just to be clear, I can't use foreach(): foreach( IN LISTS ) I am doing a "yielded" approach to looping by using list( GET ) and list( LENGTH ) in combination. So I would need the list() functions to acknowledge empty elements. On Tue, Aug 6, 2013 at 3:04 PM, Robert Dailey wrote: > I've seen

[CMake] Iterating empty elements in a list

2013-08-06 Thread Robert Dailey
I've seen that list(LENGTH) will ignore empty elements in a list. Example: 1;2;;4;5 Length will be 4 here instead of 5. I was trying to come up with a way to modify the list as a string prior to iterating it to give empty elements some dummy value, so that the above example would appear as: 1;2;

Re: [CMake] Visual Studio 10 compiler identification unknown

2013-08-06 Thread John Drescher
> Configuration of VTK with cmake-gui was ok. Don't know how it was fixed. > > Does it help if I send the output of the minimal test case? > I suspect deleting the cache in cmake-gui then running cmake-gui from the windows shortcut will break it again. BTW, I usually run cmake-gui from a visual s

Re: [CMake] Visual Studio 10 compiler identification unknown

2013-08-06 Thread Bill Hoffman
On 8/6/2013 11:31 AM, Jorge Perez wrote: Configuration of VTK with cmake-gui was ok. Don't know how it was fixed. Does it help if I send the output of the minimal test case? Sending the output if a case where it is failing will be helpful. -Bill -- Powered by www.kitware.com Please keep me

Re: [CMake] Visual Studio 10 compiler identification unknown

2013-08-06 Thread Jorge Perez
Configuration of VTK with cmake-gui was ok. Don't know how it was fixed. Does it help if I send the output of the minimal test case? 2013/8/6 Jorge Perez > Sorry, I meant that since this situation (windows 8 + visual studio 2010 > profesional + SP1) I had always started cmake-gui from the acc

Re: [CMake] correct dependencies of update-if-different generated files?`

2013-08-06 Thread Matthew Woehlke
On 2013-07-29 19:02, Matthew Woehlke wrote: Let's say¹ I have a code generation tool, 'gen', that I am naïvely using to build a library, like so: add_custom_command( OUTPUT a.cpp b.cpp COMMAND gen in.xml DEPENDS in.xml ) add_library(foo a.cpp b.cpp) Now let's say that 'gen' is clever a

Re: [CMake] Visual Studio 10 compiler identification unknown

2013-08-06 Thread Jorge Perez
Sorry, I meant that since this situation (windows 8 + visual studio 2010 profesional + SP1) I had always started cmake-gui from the access at desktop. I suppose it is a problem in my environment but don't know what to fix. The test you suggest did not fail! Then I tried to configure VTK and cmak

Re: [CMake] Visual Studio 10 compiler identification unknown

2013-08-06 Thread Bill Hoffman
On 8/6/2013 10:03 AM, Jorge Perez wrote: Yes, cmake work as expected but cmake-gui does not, it does not identify correctly the C compiler. Both started from de VS command prompt. BTW, I didn't expect run cmake-gui from the command prompt. What did you mean you did not expect run cmake-gui from

Re: [CMake] Visual Studio 10 compiler identification unknown

2013-08-06 Thread Jorge Perez
Yes, cmake work as expected but cmake-gui does not, it does not identify correctly the C compiler. Both started from de VS command prompt. BTW, I didn't expect run cmake-gui from the command prompt. 2013/8/6 Bill Hoffman > On 8/6/2013 7:40 AM, Jorge Perez wrote: > >> I had problem with both, w

Re: [CMake] Can CMake confgure shorter cmmand argments?

2013-08-06 Thread Bill Hoffman
On 8/6/2013 1:59 AM, Rolf Eike Beer wrote: And specifically HOW one can tell CMake to do this? They are obviously not implemented in CMake for this compiler. So one needs to do that. The file to look at is Modules/Platform/Windows.cmake It currently has this: # for borland make long command

Re: [CMake] Visual Studio 10 compiler identification unknown

2013-08-06 Thread Bill Hoffman
On 8/6/2013 7:40 AM, Jorge Perez wrote: I had problem with both, without SP1 and with SP1 installed. I'm able to configure with cmake but not with cmake-gui. It must be an environment thing. You can use cmake and cmake-gui from the exact same shell and one works and the other does not? -Bill

Re: [CMake] Objective-C support

2013-08-06 Thread Sean McBride
On Tue, 6 Aug 2013 12:05:35 +0200, Emmanuel Blot said: >What is the recommended way to specify compiler flags for Objective-C >source files? > >Objective-C is not defined as a specific language in the default CMake >modules (vs. C and C++ for exemple), so CMake does not seem to handle >OBJC flags

Re: [CMake] Visual Studio 10 compiler identification unknown

2013-08-06 Thread Christoph Cullmann
SP1 for Visual Studio 2010 installed? I got problems on my machine with that setup, too, if no SP1 for 2010 installed ;) Greetings Christoph - Ursprüngliche Mail - > > On 2013-08-06 12:19, Jorge Perez wrote: > > > > I have the same problem with Win64 + Visual Studio 2010 professiona

Re: [CMake] Visual Studio 10 compiler identification unknown

2013-08-06 Thread Jorge Perez
I had problem with both, without SP1 and with SP1 installed. I'm able to configure with cmake but not with cmake-gui. 2013/8/6 Christoph Cullmann > SP1 for Visual Studio 2010 installed? > > I got problems on my machine with that setup, too, if no SP1 for 2010 > installed ;) > > Greetings > Chri

Re: [CMake] Visual Studio 10 compiler identification unknown

2013-08-06 Thread Jochen Issing
On 2013-08-06 12:19, Jorge Perez wrote: I have the same problem with Win64 + Visual Studio 2010 professional. It works from command line running cmake from /Visual Studio Command Prompt /but I'm not able to configure using the gui even if I start it from the VS command prompt./ / /That's how

Re: [CMake] Visual Studio 10 compiler identification unknown

2013-08-06 Thread Jorge Perez
I have the same problem with Win64 + Visual Studio 2010 professional. It works from command line running cmake from *Visual Studio Command Prompt *but I'm not able to configure using the gui even if I start it from the VS command prompt.* * ** 2013/8/5 Jochen Issing > On 05.08.2013, at 17:42,

[CMake] Objective-C support

2013-08-06 Thread Emmanuel Blot
Hi, What is the recommended way to specify compiler flags for Objective-C source files? Objective-C is not defined as a specific language in the default CMake modules (vs. C and C++ for exemple), so CMake does not seem to handle OBJC flags at all. How to define OBJCFLAGS for a whole project, in

Re: [CMake] Example use of CPACK_INSTALL_COMMANDS

2013-08-06 Thread Eric Noulard
2013/8/6 Anil Gunturu : > Thanks for the pointers. I got component based install working. However, I > found the documentation pretty scarce, I had to find many things to trail > and error. > > For example, CPACK_INSTALLED_DIRECTORIES takes directory name and component > tuples, where as the docume

Re: [CMake] Where is a good place to install CMake scripts that are to be executed by cmake -P ?

2013-08-06 Thread Eric Noulard
2013/8/6 Alan W. Irwin : > I have a project that installs a CMake script which will be executed > by users using cmake -P . > > Where is a reasonable place to install ? Currently I > am thinking of > > /share// > > but I am a bit concerned that location might be a bad choice because > it is comple

Re: [CMake] Fwd: cdash timing database

2013-08-06 Thread Julien Jomier
Hi Mathias, The test timing results are stored in the 'testmeasurement' table which contains for each test the 'WallTime' and 'CPUTime'. For CDash related questions, please post to the cd...@public.kitware.com mailing list. Thanks, Julien Original Message Subject: [CMake