[CMake] building library with different compilers

2008-01-17 Thread Kalkuhl
Hy! I want to build a database library for different oracle versions from one source. The pl/sql code should be compiled once by proC from Oracle 9 and by proC from Oracle 10. Therefore I defined different targets and tried to define the proC compiler with target properties but this doesn't

Re: [CMake] building library with different compilers

2008-01-17 Thread Andreas Pakulat
On 17.01.08 09:15:46, [EMAIL PROTECTED] wrote: I want to build a database library for different oracle versions from one source. The pl/sql code should be compiled once by proC from Oracle 9 and by proC from Oracle 10. Therefore I defined different targets and tried to define the proC

Re: [CMake] Using CPack to create multiple packages

2008-01-17 Thread Raphael Cotty
Hi, I use use CPack to generate multiple packages (abusing COMPONENT). My project dirs are like that: Libs/ ProjectA/ ProjectB/ ProjectA and B need the libs from Libs. So when I create a package for ProjectA / ProjectB I need the packaging to include libs from Libs. So in Libs/CMakeLists.txt:

[CMake] add_custom_command as target

2008-01-17 Thread Gonzalo Garramuño
Cmake provides add_custom_target, but that creates a target that gets run either always (ALL) or manually by running make target. Cmake also provides an add_custom_command that tracks file dependencies and gets run when a dependency changes. However, add_custom_command assumes the files

Re: [CMake] add_custom_command as target

2008-01-17 Thread Brandon Van Every
On Jan 17, 2008 5:10 AM, Gonzalo Garramuño [EMAIL PROTECTED] wrote: Is there a way to create an add_custom_target that tracks dependencies? Or an add_custom_command that will act as a target (without needlessly being added to add_executable, etc). To get the effect of that, you wrap your

[CMake] How to specify out-of-source build/lib/bin directories

2008-01-17 Thread Matthias Schweinoch
Hi all, I'm a new cmake user and I'm having a little trouble. Perhaps someone here can help me: I was wondering if it is possible to specify a build path manually within the toplevel CMakeLists.txt file? I did read the wiki about out-of-source build environments, but the examples all used

RE: [CMake] How to specify out-of-source build/lib/bin directories

2008-01-17 Thread Alexander.Camek
Hi Matthias, I'm a new cmake user and I'm having a little trouble. Perhaps someone here can help me: I was wondering if it is possible to specify a build path manually within the toplevel CMakeLists.txt file? I did read the wiki about out-of-source build environments, but the examples

[CMake] How to exclude def files based on build configuration?

2008-01-17 Thread Iain Hull
Hello, We're migrating a large project from MSVC6.0 to CMake, still building with .dsps for MSVC6.0 generated by Cmake. One of the projects uses two different def file to export its symbols, one for debug builds the other for release builds. This is currently achieved using the project setting

Re: [CMake] add_custom_command as target

2008-01-17 Thread Gonzalo Garramuño
Brandon Van Every wrote: Admittedly this is inelegant, but it works. I have no idea how much work it would be to remove the distinction between file level and target level dependencies. It isn't inelegant, but quite logical. It probably should be kept as is, as it allows easily adding

[CMake] Configuring for VC9/2008 Express

2008-01-17 Thread Thomas Sharpless
Despite what it says in the Wiki, Visual C++ 2008 Express does not work nicely with cmake for me. I have cmake 2.4 patch 7, which I believe is the current release for Windows. As it does not offer a generator option for VC9, I selected VC8/2005. Then initial configuration fails because Visual

[CMake] Re: CMake and distcc

2008-01-17 Thread Rodolfo Lima
Eric Noulard escreveu: I think that when you build a gcc cross compiler you end up with the i486-linux-gnu-gcc kind of naming scheme I don't know if it's standard or not but... Well, I every linux distribution I know the gcc install target ends up creating symlinks like i686-pc-linux-gnu-gcc -

Re: [CMake] building library with different compilers

2008-01-17 Thread Andreas Pakulat
On 17.01.08 14:21:16, [EMAIL PROTECTED] wrote: Now I'm about to abandon using cmake. I can't find a way to examine the different targets in a variable. I made the different builddirs by defining subdirs: ADD_LIBRARY(ora9i/libora ... ADD_LIBRARY(ora10g/libora ... and now? Thats not a

[CMake] building library with different compilers

2008-01-17 Thread Kalkuhl
Now I'm about to abandon using cmake. I can't find a way to examine the different targets in a variable. I made the different builddirs by defining subdirs: ADD_LIBRARY(ora9i/libora ... ADD_LIBRARY(ora10g/libora ... and now? The problem is that I want to build both configurations simultaneously.

Re: [CMake] Re: CMake and distcc

2008-01-17 Thread Eric Noulard
2008/1/17, Rodolfo Lima [EMAIL PROTECTED]: Eric Noulard escreveu: #!/bin/sh distcc i686-pc-linux-gnu-gcc $@ called gcc. This works well and should be IMHO proposed to distcc developers because it deals with cmake's way to invoking gcc. Ok now I understand you don't don't even want the user

Re: [CMake] Re: CMake and distcc

2008-01-17 Thread Eric Noulard
2008/1/17, Rodolfo Lima [EMAIL PROTECTED]: Well, so redhat is doing something different than the rest. If you compile and install gcc directly from the official tarball, it'll create the i686-pc-linux-gnu symlink. Please try to invoke 'gcc -dumpmachine'. In my gentoo box, it outputs

[CMake] Re: CMake and distcc

2008-01-17 Thread Rodolfo Lima
Eric Noulard escreveu: No so sure for every linux distro, since on my fedora 7 i686 box I have: arch is telling that the host is I686 but the only mangled gcc compiler is called 'i386-redhat-linux-gcc' which is a symlink to ccache. and there is no 'i686-pc-linux-gnu'. And I have no

[CMake] Re: CMake and distcc

2008-01-17 Thread Rodolfo Lima
Eric Noulard escreveu: 2008/1/17, Rodolfo Lima [EMAIL PROTECTED]: Well, so redhat is doing something different than the rest. If you compile and install gcc directly from the official tarball, it'll create the i686-pc-linux-gnu symlink. Please try to invoke 'gcc -dumpmachine'. In my gentoo

Re: [CMake] Re: RPATH and $ORIGIN

2008-01-17 Thread James Bigler
Oh, sorry. Rereading your mail message more closely, you want a $ character to pass through properly. Did you try $$ in the original code (not the one with the single quotes)? SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_RPATH}:$$ORIGIN/../xxx) Or perhaps other stuff like on this recent

[CMake] Re: RPATH and $ORIGIN

2008-01-17 Thread Iker Arizmendi
James, The lack of braces was deliberate - the $ORIGIN string is not a CMake variable but a special token that should be passed to the linker without any expansion (the Linux linker provides special handling for rpath components that use $ORIGIN). Regards, Iker CMake expands variables with

Re: [CMake] add_custom_command as target

2008-01-17 Thread Brandon Van Every
On Jan 17, 2008 7:46 AM, Gonzalo Garramuño [EMAIL PROTECTED] wrote: That feature is, however, undocumented. Neither of the add_custom_* nor the wiki has any mention of this or the possibility of add_custom_target being able to take a custom command. Not true. add_custom_target says,

Re: [CMake] Re: RPATH and $ORIGIN

2008-01-17 Thread James Bigler
On Jan 17, 2008, at 10:22 AM, Iker Arizmendi wrote: I did try $$ and it helps, but not always (see the end of the original post). The problem is that $ symbols that are I asked if you had tried various permutations of escapes with the original command [SET(CMAKE_INSTALL_RPATH

Re: [CMake] Re: Patch to apply! Changing the default nameCMakeLists.txt! Introduction to Common Build System

2008-01-17 Thread Alexander Neundorf
On Wednesday 16 January 2008, Pau Garcia i Quiles wrote: Quoting Alexander Neundorf [EMAIL PROTECTED]: ... I'm sorry but I think I have not understood what target_use_package is useful for. Say my system has a /usr/lib/libbar.so. It just works for me if I do target_link_library(foo bar). What

Re: [CMake] Configuring for VC9/2008 Express

2008-01-17 Thread Bill Hoffman
Thomas Sharpless wrote: Despite what it says in the Wiki, Visual C++ 2008 Express does not work nicely with cmake for me. I have cmake 2.4 patch 7, which I believe is the current release for Windows. As it does not offer a generator option for VC9, I selected VC8/2005. Then initial

Re: [CMake] Using CPack to create multiple packages

2008-01-17 Thread David Cole
I don't have time to help very much right now, but I can point you to this variable: CPACK_INSTALL_CMAKE_PROJECTS grep the CMake source code and read the comments surrounding use of that variable, and see the ParaView3 source tree for one example of its use. It's a list of quadruplets that helps

[CMake] Re: RPATH and $ORIGIN

2008-01-17 Thread Iker Arizmendi
I did try $$ and it helps, but not always (see the end of the original post). The problem is that $ symbols that are part of the _value_ of the CMake *_LINKER_FLAGS variables are treated using rules that aren't clear at all (at least to me). On my system, a single $ is all that's needed for

Re: [CMake] Using CPack to create multiple packages

2008-01-17 Thread Alexander Neundorf
On Thursday 17 January 2008, Eric Noulard wrote: 2008/1/16, Filipe Sousa [EMAIL PROTECTED]: Ted Berg wrote: Filipe Sousa wrote: I aplogize, my initial post wasn't terribly clear. I'm currently generating, for example, the following packages: foo-sdk-1.0.0.zip

Re: [CMake] Re: RPATH and $ORIGIN

2008-01-17 Thread Iker Arizmendi
Sorry, I should have been clearer in my last post. I also tried escaping the value I put into CMAKE_INSTALL_RPATH but CMake successfully fought me off. Below are some of the results for an installed executable. Each SET is followed by the rpath that actually made it to the executable:

Re: [CMake] Re: RPATH and $ORIGIN

2008-01-17 Thread David Cole
Did you try \\\$? Both $ and \ need escaping inside the CMake set statement so that you end up with \$ in the variable's value... And if it goes through another round of CMake substitution, you may even need something crazy like: \\\$ HTH, David On 1/17/08, Iker Arizmendi [EMAIL

Re: [CMake] OSX universal binary support

2008-01-17 Thread Paul Oppenheim (Poppy Linden)
Bill Hoffman wrote: Sean McBride wrote: On 1/15/08 9:59 AM, Mike Jackson said: CMake also supports building 4-way fat by specifying i386;ppc;ppc64;x86_64. I have added a FAQ for this here: http://www.cmake.org/Wiki/CMake_FAQ#Platform-specific_questions If anyone wants to add more feel

Re: [CMake] Find*.cmake variable naming

2008-01-17 Thread Andreas Pakulat
On 14.01.08 23:40:39, Andreas Schneider wrote: Rodolfo Schulz de Lima wrote: Hi, I'd like to comment on the Find*.cmake variable naming procedure adopted by cmake. Right now I have to look at some Find*.cmake files to see what are the output variables they create. Some packages create a

Re: [CMake] Mac installation and cultural issues

2008-01-17 Thread Paul Oppenheim (Poppy Linden)
Even easier, you just check for symlinks at /usr/bin and ~/bin and if they're not there, ask the user if they want to install for all terminal users / just this terminal user on app launch and ask for creds if needed. + poppy /me is searching cmake backlog... Brandon Van Every wrote: On Dec

Re: [CMake] Find*.cmake variable naming

2008-01-17 Thread Andreas Schneider
Andreas Pakulat wrote: On 14.01.08 23:40:39, Andreas Schneider wrote: Rodolfo Schulz de Lima wrote: Hi, I'd like to comment on the Find*.cmake variable naming procedure adopted by cmake. Right now I have to look at some Find*.cmake files to see what are the output variables they create. Some

Re: [CMake] Find*.cmake variable naming

2008-01-17 Thread Mike Jackson
On Jan 17, 2008, at 5:41 PM, Andreas Schneider wrote: Andreas Pakulat wrote: On 14.01.08 23:40:39, Andreas Schneider wrote: Rodolfo Schulz de Lima wrote: Hi, I'd like to comment on the Find*.cmake variable naming procedure adopted by cmake. Right now I have to look at some Find*.cmake

[CMake] add_custom_command dependencies in an auxiliary variable

2008-01-17 Thread Rodolfo Lima
Hi, I wonder if it's possible to add_custom_command create a temporary variable which contents are all dependencies of the custom command. This could be used if one command shall contain all dependencies in its command line. gnu make does that with $^ (i think). Something similar with the output

Re: [CMake] add_custom_command dependencies in an auxiliary variable

2008-01-17 Thread Brandon Van Every
On Jan 17, 2008 9:15 PM, Rodolfo Lima [EMAIL PROTECTED] wrote: Hi, I wonder if it's possible to add_custom_command create a temporary variable which contents are all dependencies of the custom command. This could be used if one command shall contain all dependencies in its command line. gnu