Re: [CMake] Component Package Name

2011-11-08 Thread Eric Noulard
2011/11/9 Gantry York : > I'm trying to set up component based packaging (with RPM).  I have it > working, I just can't control the name. You currently don't have full control over the package name. - for a non-component packaging you can chose the package name by setting: CPACK_PACKAGE_FILE_

[CMake] Component Package Name

2011-11-08 Thread Gantry York
I'm trying to set up component based packaging (with RPM). I have it working, I just can't control the name. I would like it to be something like comp-9.9.9-01-rhel5-i686.rpm But currently it uses $CPACK_PACKAGE_NAME instead of the component name. -- Gantry S. York Digitascio, Inc -- Power

Re: [CMake] Multiple platforms/configurations

2011-11-08 Thread J Decker
On Tue, Nov 8, 2011 at 12:08 PM, Tom Deblauwe wrote: > Hello, > > I have 2 build configurations for the same source code and I am generating > visual studio 2005 projects. So for the first configuration I need different > defines than for the second configuration. So I do like this: > > mkdir bu

[CMake] [patch] add XRes to FindX11.cmake

2011-11-08 Thread Dan Kegel
I needed this patch for an app I'm working on. Only very lightly tested (i.e. my library loads now :-) --- FindX11.cmake.old 2011-11-09 01:52:59.352674210 + +++ FindX11.cmake 2011-11-09 01:56:23.047527447 + @@ -33,6 +33,7 @@ #X11_XTest_INCLUDE_PATH,X11_XTest_LIB,

Re: [CMake] add_custom_command, source_group, and non-existant files with the VS 2010 generator

2011-11-08 Thread Michael Hertling
On 11/08/2011 10:56 PM, Matthew LeRoy wrote: > I've got a question related to the way CMake handles files that are > non-existant > at CMake-time, but which are listed as OUTPUTs of an add_custom_command, and > are > included in a source_group. I'm using CMake 2.8.5 and the Visual Studio 2010 > g

Re: [CMake] Multiple platforms/configurations

2011-11-08 Thread Michael Hertling
On 11/08/2011 09:08 PM, Tom Deblauwe wrote: > Hello, > > I have 2 build configurations for the same source code and I am generating > visual studio 2005 projects. So for the first configuration I need different > defines than for the second configuration. So I do like this: > > mkdir build1 > c

[CMake] add_custom_command, source_group, and non-existant files with the VS 2010 generator

2011-11-08 Thread Matthew LeRoy
I've got a question related to the way CMake handles files that are non-existant at CMake-time, but which are listed as OUTPUTs of an add_custom_command, and are included in a source_group. I'm using CMake 2.8.5 and the Visual Studio 2010 generator. I have a Python script which reads a .resx file

Re: [CMake] Generated CMakeLists.txt

2011-11-08 Thread Michael Hertling
On 11/08/2011 03:30 PM, Łukasz Tasz wrote: > Hi All, > > I have one issue connected with generated code. > > What is recommended way to proceed with generators which provides > source which is dynamic? > > The setup looks like: generator has some input, and depending on this > input files are ge

[CMake] Multiple platforms/configurations

2011-11-08 Thread Tom Deblauwe
Hello, I have 2 build configurations for the same source code and I am generating visual studio 2005 projects. So for the first configuration I need different defines than for the second configuration. So I do like this: mkdir build1 cd build1 cmake -DPORT=bla ../source mkdir build2 cd build2 c

Re: [CMake] CMake 2.4.6 and Xcode 4.2 on Mac OS X 10.7

2011-11-08 Thread Sean McBride
On Tue, 8 Nov 2011 11:06:46 -0500, David Cole said: >More info, please... > >I assume you mean CMake 2.8.6 and not 2.4.6, as in the subject line... :-) Doh! >Are you setting CC and CXX before calling "cmake -G Xcode ../CMake"? Yes, see:

Re: [CMake] An Italian article about CMake

2011-11-08 Thread David Cole
Excellent! Will the article be available online, or do you have to get a copy of the November issue of the magazine to read the article? Thanks, David C. Kitware, Inc. On Tue, Nov 8, 2011 at 3:54 AM, Andrea Galeazzi wrote: > I'm glad to inform you that I recently wrote an article about CMake >

Re: [CMake] CMake 2.4.6 and Xcode 4.2 on Mac OS X 10.7

2011-11-08 Thread David Cole
More info, please... I assume you mean CMake 2.8.6 and not 2.4.6, as in the subject line... :-) Are you setting CC and CXX before calling "cmake -G Xcode ../CMake"? That's not a valid way of setting the compiler to a different compiler with the Xcode generator. Are you trying to build CMake or so

[CMake] CMake 2.4.6 and Xcode 4.2 on Mac OS X 10.7

2011-11-08 Thread Sean McBride
Hi all, I've updated one of my dashboard machines to 10.7 and Xcode 4.2 and am having trouble with the Xcode generator. It fails with: - The C compiler "/usr/bin/llvm-gcc" is not able to compile a simple test program. It fails with the following output: Change Dir: /Users/buil

[CMake] Generated CMakeLists.txt

2011-11-08 Thread Łukasz Tasz
Hi All, I have one issue connected with generated code. What is recommended way to proceed with generators which provides source which is dynamic? The setup looks like: generator has some input, and depending on this input files are generated. >From cmake point of view I need only this list of s

Re: [CMake] Globally Set Target Properties

2011-11-08 Thread Michael Hertling
On 11/08/2011 01:36 PM, Schuchard, Matthew wrote: > Thanks, I think I must be doing something wrong elsewhere then, because I > follow the same syntax as what you wrote. > However, it is not working for me which means my error must be somewhere else. Could you provide a minimal but complete exemp

Re: [CMake] Globally Set Target Properties

2011-11-08 Thread Schuchard, Matthew
Thanks, I think I must be doing something wrong elsewhere then, because I follow the same syntax as what you wrote. However, it is not working for me which means my error must be somewhere else. I had thought, based on a stack overflow link, that CMAKE_STATIC_LIBRARY_PREFIX was only for linking t

[CMake] An Italian article about CMake

2011-11-08 Thread Andrea Galeazzi
I'm glad to inform you that I recently wrote an article about CMake published in the Italian computer science magazine IoProgrammo (www.ioprogrammo.it ) on November issue. A next one is gonna be published on December. I seize this opportunity to congratulate all the