Re: [cmake-developers] User vs CMake include mismatch handling

2010-11-17 Thread Brad King
On 11/17/2010 04:50 PM, Alexander Neundorf wrote: That's why this policy has to be set to NEW to avoid breakage. As Dave said, the entire design of policies is based on defaulting to WARN, as in do what I did before but tell people it is no longer the right way. If that doesn't make sense in

Re: [cmake-developers] hot to get something from stage to next or master ?

2010-11-17 Thread Brad King
On 11/17/2010 04:59 PM, Alexander Neundorf wrote: I haven't done the final push yet. Is it ok to do that push ? Yes. Doesn't that go around the stage then again ? Yes, but the difference is that the stage now has the named topic branch on it. Previously you never even pushed that name to

Re: [CMake] help with cmake fortran envar

2010-11-17 Thread Arjen Markus
Hello luxInteg, you are trying to set the Fortran compiler to gfortran then? Why? Why not leave it to CMake to come up with whatever compiler is suitable? That is part of the strength of tools like CMake. Regards, Arjen On 2010-11-16 20:44, luxInteg wrote: Greetings, I am learning cmake.

[CMake] Run compiler through another tool?

2010-11-17 Thread Hariharan
Is it possible to run the compiler and linker through another command, say time or a custom script? In other words, I want the compile and link steps to run command gcc and command ld. Regards, Hariharan ___ Powered by www.kitware.com Visit other

Re: [CMake] BundleUtilities

2010-11-17 Thread David Cole
On Tue, Nov 16, 2010 at 10:15 PM, David Doria daviddo...@gmail.com wrote: Is the goal simply to copy ...VTK/bin/libvtkHybrid.a into the package? I tried this: INSTALL(CODE \${VTK_DIR}/bin/libvtkHybrid.a) But I get: Parse error.  Expected a command name, got unquoted argument with text

Re: [CMake] Run compiler through another tool?

2010-11-17 Thread Micha Renner
Am Mittwoch, den 17.11.2010, 15:07 +0530 schrieb Hariharan: Is it possible to run the compiler and linker through another command, say time or a custom script? In other words, I want the compile and link steps to run command gcc and command ld. In this case you have to work with a combination

Re: [CMake] Run compiler through another tool?

2010-11-17 Thread David Cole
On Wed, Nov 17, 2010 at 5:50 AM, Micha Renner micha.ren...@t-online.de wrote: Am Mittwoch, den 17.11.2010, 15:07 +0530 schrieb Hariharan: Is it possible to run the compiler and linker through another command, say time or a custom script? In other words, I want the compile and link steps to run

[CMake] Extra include/lib paths - multiple entries

2010-11-17 Thread Adam J Richardson
Hi list, Is this a correct specification for multiple include/lib paths in environment variables? If not, what should I use instead? Sometimes it seems to work, other times not... CMAKE_INCLUDE_PATH=C:/Compilers/Includes;C:/Compilers/MinGW/include

[CMake] Embedding static library in shared object library

2010-11-17 Thread santosh mahto
Hi all Q:-i have a 3 static library(say A.a B.a C.a) and i want to create my final library as .so (say Main.so ) which link + embedd all three Library.i tried TARGET_LINK_LIBRARIES but it only links to A.a B.a C.a.and dosnt append it.I want my final binary(Main.so) to include(or embedd) all three

Re: [CMake] Embedding static library in shared object library

2010-11-17 Thread Mateusz Loskot
On 17/11/10 11:33, santosh mahto wrote: Hi all Q:-i have a 3 static library(say A.a B.a C.a) and i want to create my final library as .so (say Main.so ) which link + embedd all three Library.i tried TARGET_LINK_LIBRARIES but it only links to A.a B.a C.a.and dosnt append it.I want my final

Re: [CMake] Extra include/lib paths - multiple entries

2010-11-17 Thread Yngve Inntjore Levinsen
On Wednesday 17 November 2010 12:30:06 Adam J Richardson wrote: Hi list, Is this a correct specification for multiple include/lib paths in environment variables? If not, what should I use instead? Sometimes it seems to work, other times not...

[CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Thomas Lehmann
Hi all, for an automatically forced include I have provided an option like this: set(WIN32_SPEC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) add_definitions(-FI ${WIN32_SPEC}) But when including this central file (find_package) the variable CMAKE_CURRENT_SOURCE_DIR changes and

Re: [CMake] BundleUtilities

2010-11-17 Thread David Doria
Tyler, You seem to be right in that I should not escape the $, but I DID need to add DESTINATION bin. Without it, I got a: CMake Error at CMakeLists.txt:23 (INSTALL): install FILES given no DESTINATION! This seems to work: INSTALL(FILES ${VTK_DIR}/bin/libvtkHybrid.a DESTINATION bin) The

Re: [CMake] Run compiler through another tool?

2010-11-17 Thread Michael Hertling
On 11/17/2010 10:37 AM, Hariharan wrote: Is it possible to run the compiler and linker through another command, say time or a custom script? In other words, I want the compile and link steps to run command gcc and command ld. If you're using a Makefile generator you might have a look at the

Re: [CMake] BundleUtilities

2010-11-17 Thread Michael Jackson
I tool a little different approach in my own projects. I end up configuring a shell script that gets run at install time (OS X Only). Inside that shell script are all the copying to the CMAKE_INSTALL_PREFIX, ensuring destination directories inside the OS X App bundle are setup (Plugins,

[CMake] Creating a XXXConfigYYY.cmake file

2010-11-17 Thread Torri, Stephen CIV NSWCDD, W15
I have been reading email posts on goggle that says if you create a library then produce a nameConfigversioncmake file rather than a Findname.cmake file. That is fine but what confuses me is: 1. What do I put in it? 2. How do I install it? (e.g. Linux and Windows) 3. What google search

Re: [CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Eric Noulard
2010/11/17 Thomas Lehmann t.lehm...@rtsgroup.net Hi all, for an automatically forced include I have provided an option like this: set(WIN32_SPEC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) May you could use an absolute reference using

Re: [CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Thomas Lehmann
for an automatically forced include I have provided an option like this: set(WIN32_SPEC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) May you could use an absolute reference using ${PROJECT_SOURCE_DIR}/libs/global/win32_spec.h if your project is name TOTO (from

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-17 Thread K. Noel Belcourt
Hi Brad, On Nov 16, 2010, at 3:49 PM, Brad King wrote: On 11/16/2010 04:52 PM, Belcourt, K. Noel wrote: On Nov 16, 2010, at 2:50 PM, Brad King wrote: On 11/16/2010 04:24 PM, Belcourt, K. Noel wrote: which is the same list of libraries in these SUBDIRS commands in the top-level

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-17 Thread Brad King
On 11/17/2010 11:32 AM, K. Noel Belcourt wrote: On Nov 16, 2010, at 3:49 PM, Brad King wrote: Run make -d to get debugging output. It is *very* verbose but can tell you why make chooses to run certain rules. It's definitely related to the presence of the SUBDIRS. Make never considers

Re: [CMake] BundleUtilities

2010-11-17 Thread David Doria
On Wed, Nov 17, 2010 at 9:32 AM, Michael Jackson mike.jack...@bluequartz.net wrote: I tool a little different approach in my own projects. I end up configuring a shell script that gets run at install time (OS X Only). Inside that shell script are all the copying to the CMAKE_INSTALL_PREFIX,

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-17 Thread Brad King
On 11/17/2010 11:51 AM, K. Noel Belcourt wrote: It's attached. Hmm..I don't see anything jumping out at me there. On 11/17/2010 11:32 AM, K. Noel Belcourt wrote: This works, but moving SUBDIRS(Modules) into it's lexical ordering fails with the reported error. Do these libraries have

[CMake] codesourcery integration

2010-11-17 Thread Andrea Galeazzi
I'm facing the problem of using the cross compile toolchain of CodeSourcery. My host system in Windows and my target is ARM-Linux. I red this tutorial http://www.cmake.org/Wiki/CMake_Cross_Compiling and I tried to do something similar: # this one is important SET(CMAKE_SYSTEM_NAME Linux) #this

Re: [CMake] BundleUtilities

2010-11-17 Thread Michael Jackson
On Nov 17, 2010, at 12:20 PM, Clinton Stimpson wrote: For Qt projects, a macro for creating a qt.conf file and a macro for installing Qt plugins would be nice to have in FindQt4.cmake (anyone want to take a stab at that?) To say this needs cleaned up and refactored is an understatement

Re: [CMake] codesourcery integration

2010-11-17 Thread Rolf Eike Beer
Am Mittwoch, 17. November 2010 schrieb Andrea Galeazzi: I'm facing the problem of using the cross compile toolchain of CodeSourcery. My host system in Windows and my target is ARM-Linux. I red this tutorial http://www.cmake.org/Wiki/CMake_Cross_Compiling and I tried to do something similar: #

Re: [CMake] BundleUtilities

2010-11-17 Thread Michael Jackson
On Nov 17, 2010, at 12:20 PM, Clinton Stimpson wrote: On Wednesday, November 17, 2010 09:46:23 am David Doria wrote: On Wed, Nov 17, 2010 at 9:32 AM, Michael Jackson mike.jack...@bluequartz.net wrote: I tool a little different approach in my own projects. I end up configuring a shell script

Re: [CMake] codesourcery integration

2010-11-17 Thread Eric Noulard
2010/11/17 Andrea Galeazzi galea...@korg.it: I'm facing the problem of using the cross compile toolchain of CodeSourcery. My host system in Windows and my target is ARM-Linux. I red this tutorial http://www.cmake.org/Wiki/CMake_Cross_Compiling and I tried to do something similar: # this one

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-17 Thread Brad King
On 11/17/2010 12:15 PM, K. Noel Belcourt wrote: On Nov 17, 2010, at 10:02 AM, Brad King wrote: This tells CMake to print some verbose target dependency information. I bet it will report modules in a non-trivial connected component with a bunch of other libraries. Please send me the output.

Re: [CMake] VS solution folder puts first project last

2010-11-17 Thread James Bigler
On Tue, Nov 16, 2010 at 11:55 PM, Rolf Eike Beer e...@sf-mail.de wrote: Am Mittwoch, 17. November 2010 schrieb James Bigler: Has anyone else noticed situations where VS puts the first project (as determined alphabetically) in a project folder as the last project? Yes, I have seen this when

Re: [CMake] VS solution folder puts first project last

2010-11-17 Thread David Cole
On Wed, Nov 17, 2010 at 1:25 PM, James Bigler jamesbig...@gmail.com wrote: On Tue, Nov 16, 2010 at 11:55 PM, Rolf Eike Beer e...@sf-mail.de wrote: Am Mittwoch, 17. November 2010 schrieb James Bigler: Has anyone else noticed situations where VS puts the first project (as determined

Re: [CMake] VS solution folder puts first project last

2010-11-17 Thread James Bigler
On Wed, Nov 17, 2010 at 11:30 AM, David Cole david.c...@kitware.com wrote: On Wed, Nov 17, 2010 at 1:25 PM, James Bigler jamesbig...@gmail.com wrote: On Tue, Nov 16, 2010 at 11:55 PM, Rolf Eike Beer e...@sf-mail.de wrote: Am Mittwoch, 17. November 2010 schrieb James Bigler: Has anyone

Re: [CMake] BundleUtilities

2010-11-17 Thread David Cole
On Wed, Nov 17, 2010 at 11:46 AM, David Doria daviddo...@gmail.com wrote: On Wed, Nov 17, 2010 at 9:32 AM, Michael Jackson mike.jack...@bluequartz.net wrote: I tool a little different approach in my own projects. I end up configuring a shell script that gets run at install time (OS X Only).

Re: [CMake] BundleUtilities

2010-11-17 Thread David Doria
BundleUtilities is meant to be a more general approach to packaging 3rd party libraries. It will look at an executable, and find all of its dependencies (the ones necessary to make the program execute) and copy the non-system dependencies into your install directory. Clint, Great, this is

Re: [CMake] BundleUtilities

2010-11-17 Thread David Doria
The goal is simply this: - given: -- an executable target, that happens to be a bundle app on the Mac -- a full path to that bundle in the install tree -- a list of plugins that you have also already installed in the bundle -- a list of directories where to find libraries that your

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-17 Thread K. Noel Belcourt
On Nov 17, 2010, at 11:18 AM, Brad King wrote: On 11/17/2010 12:15 PM, K. Noel Belcourt wrote: On Nov 17, 2010, at 10:02 AM, Brad King wrote: This tells CMake to print some verbose target dependency information. I bet it will report modules in a non-trivial connected component with a bunch

Re: [CMake] How to install openbabel python bindings by using the new cmake installer (problem selecting a particular python version).

2010-11-17 Thread Hector Martinez-Seara
Hi all, Thank you for your help. I have set PYTHON_EXECUTABLE, PYTHON_INCLUDE_DIR and PYTHON_LIBRARY variables to appropriate values to Python 3.1. Now indeed the compilation works. I'm not an expert in cmake so I am afraid I can say little about changing cmake behavior, but thank you all for

Re: [CMake] BundleUtilities

2010-11-17 Thread David Cole
Responses inline on this one... On Wed, Nov 17, 2010 at 1:56 PM, David Doria daviddo...@gmail.com wrote: The goal is simply this: - given: -- an executable target, that happens to be a bundle app on the Mac -- a full path to that bundle in the install tree -- a list of plugins that you

[CMake] autoconf to cmake conversion

2010-11-17 Thread luxInteg
Greetings, I am learning cmake. I am looking for a tool to converta build system fom autoconf to cmake. II came across am2cmake available at http://websvn.kde.org/trunk/KDE/kdesdk/cmake/scripts/ It is very kde3 specific, I was wondering if there is anything more generic available.

Re: [CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Michael Hertling
On 11/17/2010 04:56 PM, Thomas Lehmann wrote: for an automatically forced include I have provided an option like this: set(WIN32_SPEC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) May you could use an absolute reference using ${PROJECT_SOURCE_DIR}/libs/global/win32_spec.h

[Cmake-commits] CMake branch, next, updated. v2.8.3-637-g898415c

2010-11-17 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 898415ce6aa8a568c5ec03991e726edb458fdcf4 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.3-639-g5ec1031

2010-11-17 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 5ec10314db7a352bf2dfab24e75f0f6245466628 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.3-645-gbd4fba9

2010-11-17 Thread Alexander Neundorf
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via bd4fba99a589ee1a640f4006b4195c4cd7ba2750 (commit) via

[Cmake-commits] CMake branch, hooks, updated. 125100babc6a0c1f25cb88b7da66c1bbb2a62fdf

2010-11-17 Thread cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, hooks has been updated via 125100babc6a0c1f25cb88b7da66c1bbb2a62fdf (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.3-77-gda0a463

2010-11-17 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via da0a463f17418d6f2c1846c48cc33caa6025095a (commit) from