Re: [CMake] Double Substitution in IF Statement

2009-11-19 Thread Marcel Loose
Hi Aaron, If I run your script (using CMake 2.6.2) I get -- CONTAINS_LIB = TRUE as output. Isn't that what you expected? If not, then I'm missing the point of your macro LIST_CONTAINS. What version of CMake are you using? Best regards, Marcel Loose. On Wed, 2009-11-18 at 09:54 -0800,

Re: [CMake] (cmake2.8) FindOpenSSl and win32/MinGW

2009-11-19 Thread Mathieu Malaterre
I merged it into CMake/CVS. Thanks. $ cvs ci -mFix FindOpenSSL on mingw. This has been reported to be working by ctrlaltca libero.it on cmake mailing list. Modules/FindOpenSSL.cmake Committer: Mathieu Malaterre mathieu.malate...@gmail.com /cvsroot/CMake/CMake/Modules/FindOpenSSL.cmake,v --

Re: [CMake] Double Substitution in IF Statement

2009-11-19 Thread Michael Wild
No, it should be empty because he wants to test whether HELLO is in LIBS. But inside the IF statement, the ${VALUE} that evaluates to LIB (a member of LIBS) gets then expanded again to HELLO. Quite funny actually. However, reading the manpage closely only the left-hand value of STREQUAL

Re: [CMake] functions as first class objects

2009-11-19 Thread Michael Wild
On 19. Nov, 2009, at 3:07 , David Manura wrote: On Wed, Nov 18, 2009 at 4:58 PM, Alexander Neundorf wrote: On Wednesday 18 November 2009, David Manura wrote: That would be better than nothing, though it does have a limitation in that you cannot wrap a function more than once. Not sure.

[CMake] CHECK_INCLUDE_FILES() and dependency headers

2009-11-19 Thread Jan Kneschke
Hi, I have a few projects that have to check for net/if.h. At least on Mac OS X the fails with CHECK_INCLUDE_FILES() even if the file exists as it needs some types that are imported through sys/socket.h. Looking at the template of Modules/CheckIncludeFile.c.in I see: #include

[CMake] Release 1.41.0.cmake0, RPM generator problem

2009-11-19 Thread Gordan Sikic
Hi, (I consider myself user of both cmake and boost) I'd like to report that I experienced problem while generating RPM binary package on F11, and cmake 2.8.0; output of rpmbuild.err in RPM build directory was as follows: $cat rpmbuild.err error: line 4: Tag takes single token only: Name:

[CMake] ExternalProject_Add: not possible to add multiple flags to configure

2009-11-19 Thread winfried_mb2
I'm trying to build several external libraries with the ExternalProject_Add command, among which ffmpeg. When using the msys generator, I can't find a way to add multiple compile flags to the configure script. The configure command should be generated like this: configure --prefix=/some/path

Re: [CMake] functions as first class objects

2009-11-19 Thread Jed Brown
Michael Wild wrote: Not sure I'd like that... Instead of being more expressive, I think this would be very confusing. This is not a some magic beast coming out of functional languages. In fact, it's pretty hard to find a language that can't do this sort of thing, even older Fortrans let you

Re: [CMake] functions as first class objects

2009-11-19 Thread Michael Wild
On 19. Nov, 2009, at 15:06 , Jed Brown wrote: Michael Wild wrote: Not sure I'd like that... Instead of being more expressive, I think this would be very confusing. This is not a some magic beast coming out of functional languages. In fact, it's pretty hard to find a language that can't

Re: [CMake] Reading registry broken on Windows 7?

2009-11-19 Thread Bill Hoffman
Celil Rufat wrote: On a Windows 7 machine I cannot read any registry values that contain a semicolon. For example if you have 7-zip, running the following SET(MYPATH [HKEY_LOCAL_MACHINE\\SOFTWARE\\7-Zip;Path]) MESSAGE(MYPATH = ${MYPATH}) results in MYPATH =

[CMake] Create an XXXConfig.cmake file

2009-11-19 Thread Michael Jackson
So, there are a few of us quickly port the HDF5 1.8 code to CMake. I'm thinking that we should put in an HDF5Config.cmake file for other projects use. Simple question: What goes in one of those? Is there a tutorial somewhere? Where does the file get installed into? What does the consumer

Re: [CMake] ExternalProject_Add: not possible to add multiple flags to configure

2009-11-19 Thread David Cole
You could generate a script that you call that calls the configure command the way you want it to and then execute the script as the configure command... I'll take a look at passing args like this and see if I can figure out a way to get them to work. For now, the generate script approach should

Re: [CMake] functions as first class objects

2009-11-19 Thread Michael Wild
On 19. Nov, 2009, at 15:44 , Jed Brown wrote: Michael Wild wrote: On 19. Nov, 2009, at 15:06 , Jed Brown wrote: Michael Wild wrote: Not sure I'd like that... Instead of being more expressive, I think this would be very confusing. This is not a some magic beast coming out of

Re: [CMake] Reading registry broken on Windows 7?

2009-11-19 Thread Brad King
Bill Hoffman wrote: You want: get_filename_component(MYPATH [HKEY_LOCAL_MACHINE\\SOFTWARE\\7-Zip;Path] PATH) The PATH option will strip off the last component of the path after lookup. Use ABSOLUTE instead: get_filename_component(MYPATH [HKEY_LOCAL_MACHINE\\SOFTWARE\\7-Zip;Path]

Re: [CMake] Create an XXXConfig.cmake file

2009-11-19 Thread Brad King
Michael Jackson wrote: So, there are a few of us quickly port the HDF5 1.8 code to CMake. I'm thinking that we should put in an HDF5Config.cmake file for other projects use. Yes, it would be good to provide one of these. What goes in one of those? It should compute and set variables named

Re: [CMake] functions as first class objects

2009-11-19 Thread Jed Brown
Michael Wild wrote: Although this is OT, I have to say that this is not true. C++ is still statically typed. Yes, it is statically typed, but symbols can have different definitions in different scopes. Overloaded functions are actually different, but template instances are written into every

Re: [CMake] functions as first class objects

2009-11-19 Thread Aaron_Wright
I agree with Michael. C/C++ does not allow you pass around functions. You can only pass around pointers to functions. Perhaps this line is confusing you: int (*Func)(int,int) = SomeFunction; This is not assigning SomeFunction to Func. It's assigning a pointer to SomeFunction to Func. It

Re: [CMake] Create an XXXConfig.cmake file

2009-11-19 Thread Clinton Stimpson
I think its basically setting variable to include paths, defines and libraries, that the calling CMakeLists.txt can use. I make my *Config.cmake files look relative to their location and use an exports file from CMake for the libraries. === FooConfig.cmake === SET(FOO_EXPORT_FILE

Re: [CMake] Create an XXXConfig.cmake file

2009-11-19 Thread Michael Wild
On 19. Nov, 2009, at 16:24 , Michael Jackson wrote: So, there are a few of us quickly port the HDF5 1.8 code to CMake. I'm thinking that we should put in an HDF5Config.cmake file for other projects use. Simple question: What goes in one of those? Is there a tutorial somewhere? Where

Re: [CMake] Create an XXXConfig.cmake file

2009-11-19 Thread James C. Sutherland
On Nov 19, 2009, at 8:24 AM, Michael Jackson wrote: So, there are a few of us quickly port the HDF5 1.8 code to CMake. I'm thinking that we should put in an HDF5Config.cmake file for other projects use. Simple question: What goes in one of those? Is there a tutorial somewhere? Where

Re: [CMake] Release 1.41.0.cmake0, RPM generator problem

2009-11-19 Thread Eric Noulard
2009/11/19 Gordan Sikic gordan.si...@uscs.hr: Hi, (I consider myself user of both cmake and boost) I'd like to report that I experienced problem while generating RPM binary package on F11, and cmake 2.8.0; output of rpmbuild.err in RPM build directory was as follows: Which software are you

Re: [CMake] Create an XXXConfig.cmake file

2009-11-19 Thread Michael Jackson
Thanks to everyone for the help. I'll start taking a look around. Just for the record, John Biddiscombe is also helping in this effort and there is also initial buy-in from The HDFGroup to switch their HDF5 windows builds over to CMake in the future when the CMake version stabilizes.

Re: [CMake] Release 1.41.0.cmake0, RPM generator problem

2009-11-19 Thread troy d. straszheim
Gordan Sikic wrote: Hi, (I consider myself user of both cmake and boost) I'd like to report that I experienced problem while generating RPM binary package on F11, and cmake 2.8.0; output of rpmbuild.err in RPM build directory was as follows: $cat rpmbuild.err error: line 4: Tag takes

Re: [CMake] functions as first class objects

2009-11-19 Thread Alexander Neundorf
On Thursday 19 November 2009, David Manura wrote: On Wed, Nov 18, 2009 at 4:58 PM, Alexander Neundorf wrote: On Wednesday 18 November 2009, David Manura wrote: That would be better than nothing, though it does have a limitation in that you cannot wrap a function more than once. Not

Re: [CMake] CMAKE_GENERATOR question

2009-11-19 Thread Alexander Neundorf
On Thursday 19 November 2009, Steven Wilson wrote: Why, in CMake 2.8.0, is the value of CMAKE_GENERATOR Unix Makefiles when using the Eclipse CDT4 - Unix Makefiles generator? That is also the case in cmake 2.6.x. Check CMAKE_EXTRA_GENERATOR, this should contain Eclipse CDT4. Alex

[CMake] Builds slow as they go

2009-11-19 Thread Phil Smith
Our build is on the order of 400 modules. It starts off very briskly and then slows down. Has anyone explored this? I realize it's probably not really CMake, but it's VERY noticeable. I first thought CMakeOutput.log was the culprit, but now I'm suspecting not. -- ...phsiii Phil Smith III

Re: [CMake] Builds slow as they go

2009-11-19 Thread Alexander Neundorf
On Thursday 19 November 2009, Phil Smith wrote: Our build is on the order of 400 modules. It starts off very briskly and You mean like 400 targets, where the later ones depend on the earlier ones ? Maybe there's a lot of dependency scanning going on. Did you try cmake 2.8.0 ? This got faster

Re: [CMake] CHECK_INCLUDE_FILES() and dependency headers

2009-11-19 Thread Alexander Neundorf
On Thursday 19 November 2009, Jan Kneschke wrote: Hi, I have a few projects that have to check for net/if.h. At least on Mac OS X the fails with CHECK_INCLUDE_FILES() even if the file exists as it needs some types that are imported through You mean check_include_file(), right ?

Re: [CMake] breaking overly long lines without creating a list?

2009-11-19 Thread Daniel Franke
On Thursday 19 November 2009 09:46:29 Marcel Loose wrote: # -- # join_arguments(var) # # Join the arguments in the (semi-colon separated) list VAR into one # space separated string. The string will be returned in the variable

Re: [CMake] functions as first class objects

2009-11-19 Thread David Manura
On Thu, Nov 19, 2009 at 10:44 AM, Michael Wild wrote: Anyways, I didn't want to get into a language-war, but rather voiced my dislike for such dubious flexibility. CMake is very domain-specific language used to create build systems, not a general-purpose language. My syntax might not have been