[cmake-developers] [CMake 0012075]: generated .vcproj with wrong encoding

2011-04-13 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=12075 == Reported By:zouguangxian Assigned To:

Re: [cmake-developers] Adding the OpenRAVE library module

2011-04-13 Thread Brad King
On 04/12/2011 08:02 PM, Rosen Diankov wrote: Perhaps I missed something, but FindX.cmake packages will look for that, while the configuration method you are suggesting will not. Correct. I've been meaning to address this for a long time. It would be great if find_package also searches the

Re: [cmake-developers] Adding the OpenRAVE library module

2011-04-13 Thread Rosen Diankov
hi brad, ok, the changes you are proposing sound exciting! perhaps this can be a start for a truly cross platform package management system ;0) so is the best approach for now to create a minimal FindOpenRAVE.cmake to give to user, and put FindOpenRAVEConfig.cmake in $installprefix/lib/cmake/?

Re: [cmake-developers] Adding the OpenRAVE library module

2011-04-13 Thread Brad King
On 04/13/2011 11:32 AM, Rosen Diankov wrote: ok, the changes you are proposing sound exciting! perhaps this can be a start for a truly cross platform package management system ;0) If only ;) so is the best approach for now to create a minimal FindOpenRAVE.cmake to give to user, and put

Re: [cmake-developers] CMake system package registry (was: Adding the OpenRAVE library module)

2011-04-13 Thread Brad King
On 04/13/2011 10:46 AM, Brad King wrote: I'll take a look at generalizing the user package registry and get back to you. I just merged a patch series into 'next' that does this: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4df11977

Re: [CMake] Properly Detecting Win64

2011-04-13 Thread Rolf Eike Beer
Maybe you can base the package name by testing the generator name. I need to do that to e.g. get a useful build naming in CTest scripts. At that point CMAKE_SIZEOF_VOID_P is not available anyway. And I think that using this is just a bad idea. How do you decide if it's IA64 or AMD64? I use this

Re: [CMake] Properly Detecting Win64

2011-04-13 Thread Rolf Eike Beer
Maybe you can base the package name by testing the generator name. I need to do that to e.g. get a useful build naming in CTest scripts. At that point CMAKE_SIZEOF_VOID_P is not available anyway. And I think that using this is just a bad idea. How do you decide if it's IA64 or AMD64? [...]

[CMake] Searchable mail archive

2011-04-13 Thread J.S. van Bethlehem
Dear CMake users, This week I started to investigate possibilities to move my build-system over to CMake after hearing a lot of good stories about it. To be honest, so far I'm still not quite convinced. The learning (I find at least) is rather steep and the documentation rather sparse

Re: [CMake] Searchable mail archive

2011-04-13 Thread Michael Wild
On 04/13/2011 09:45 AM, J.S. van Bethlehem wrote: Dear CMake users, This week I started to investigate possibilities to move my build-system over to CMake after hearing a lot of good stories about it. To be honest, so far I'm still not quite convinced. The learning (I find at least) is

[CMake] How to run CMake generated projects in VS2008

2011-04-13 Thread Ronan Keating
hi all, I want to know which is the proper way of generating/using the CMake generated VS2008 project files. I've downloaded the OpenGL samples pack from G-TRUC.NET. In order to not hassle with include files, dependencies etcc.. from forums I've been instructed to use the CMake to

Re: [CMake] Searchable mail archive

2011-04-13 Thread Eric Noulard
2011/4/13 Michael Wild them...@gmail.com: On 04/13/2011 09:45 AM, J.S. van Bethlehem wrote: Dear CMake users, This week I started to investigate possibilities to move my build-system over to CMake after hearing a lot of good stories about it. To be honest, so far I'm still not quite

[CMake] Resource file skipped without warning

2011-04-13 Thread pellegrini
Hello everybody, I am using CMake 2.8 to build a Fortran executable that uses Winteracter graphical library. The build is performed using Intel Fortran Compiler. I read in previous discussion (http://www.cmake.org/pipermail/cmake/2004-January/004664.html) that just adding the rc file as a

[CMake] Adding custom directories to PATH enviroment

2011-04-13 Thread Gabriele Greco
Hi, I've started using cmake on my projects since a few weeks so I'm still a beginner. The system works very well I only have a problem. I need to have a directory inside the project tree included in the command search path (the enviroment variable PATH). I tried with: set(ENV{PATH}

Re: [CMake] Adding custom directories to PATH enviroment

2011-04-13 Thread Michael Wild
On 04/13/2011 11:51 AM, Gabriele Greco wrote: Hi, I've started using cmake on my projects since a few weeks so I'm still a beginner. The system works very well I only have a problem. I need to have a directory inside the project tree included in the command search path (the enviroment

[CMake] Fwd: Adding custom directories to PATH enviroment

2011-04-13 Thread Gabriele Greco
And then configure and run it like this: CMakeLists.txt: --- # ... configure_file(foo_wrapper.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/foo_wrapper.cmake @ONLY) add_custom_command(OUTPUT bar COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/foo_wrapper.cmake COMMENT

Re: [CMake] Fwd: Adding custom directories to PATH enviroment

2011-04-13 Thread Michael Wild
On 04/13/2011 01:04 PM, Gabriele Greco wrote: And then configure and run it like this: CMakeLists.txt: --- # ... configure_file(foo_wrapper.cmake.in http://foo_wrapper.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/foo_wrapper.cmake @ONLY)

Re: [CMake] Searchable mail archive

2011-04-13 Thread Stephen Kelly
J.S. van Bethlehem wrote: Dear CMake users, This week I started to investigate possibilities to move my build-system over to CMake after hearing a lot of good stories about it. To be honest, so far I'm still not quite convinced. The learning (I find at least) is rather steep and the

[CMake] Confusing problem with building VTK via external project

2011-04-13 Thread kent williams
I've all of a sudden started having trouble building VTK via an ExternalProject. OS X, CMake 2.8.4, Standard GCC 4.2 compilers, stock VTK 5.6.1. output of make VERBOSE=1 of the top-level project, you can see that QT_QMAKE_EXECUTABLE is set, but when CMake runs, it somehow ignores the variables

Re: [CMake] Confusing problem with building VTK via external project

2011-04-13 Thread David Cole
On Wed, Apr 13, 2011 at 11:04 AM, kent williams nkwmailingli...@gmail.comwrote: I've all of a sudden started having trouble building VTK via an ExternalProject. OS X, CMake 2.8.4, Standard GCC 4.2 compilers, stock VTK 5.6.1. output of make VERBOSE=1 of the top-level project, you can see

Re: [CMake] Confusing problem with building VTK via external project

2011-04-13 Thread kent williams
Strange as it may seem, there must have been something fracked up in my Emacs environment because this craziness went away when I restarted Emacs. Though the particulars of how this began are mysterious. On Wed, Apr 13, 2011 at 10:26 AM, David Cole david.c...@kitware.com wrote: On Wed, Apr 13,

Re: [CMake] Fwd: Adding custom directories to PATH enviroment

2011-04-13 Thread Gabriele Greco
Then you haven't read or understood my message ;-) Instead of calling idlcc directly in the add_custom_command, you call a wrapper script, that sets the PATH environment variable, and *then* invokes idlcc. Ok, I implemented your solution and it works, thanks! One additional comment:

Re: [CMake] Fwd: Adding custom directories to PATH enviroment

2011-04-13 Thread Michael Wild
On 04/13/2011 05:52 PM, Gabriele Greco wrote: Then you haven't read or understood my message ;-) Instead of calling idlcc directly in the add_custom_command, you call a wrapper script, that sets the PATH environment variable, and *then* invokes idlcc. Ok, I implemented your

[CMake] Finding dynamic libraries with major interface revision numbers (2)

2011-04-13 Thread Jean-Christophe Fillion-Robin
Hi Folks, Is there a solution to find a library having a revision number ? For example, on Ubuntu, after I installed 'libgfortran3', there is the library /usr/lib/libgfortran.so.3 then the following command failed: FIND_LIBRARY(GFortran_LIBRARY gfortran) If I create the symlink

Re: [CMake] embedded path in shared library linked into another shared library

2011-04-13 Thread Alexander Neundorf
On Tuesday 12 April 2011, Michael Hertling wrote: On 04/11/2011 11:10 PM, David Aiken wrote: That didn't work for me.. I've got it simplified down to: SET(CMAKE_SKIP_RPATH TRUE) and in the CMakeCache.txt I see: CMAKE_SKIP_RPATH:BOOL=NO That's not surprising as your SET() command doesn't

Re: [CMake] Finding dynamic libraries with major interface revision numbers (2)

2011-04-13 Thread Brad King
On 04/13/2011 02:44 PM, Jean-Christophe Fillion-Robin wrote: Is there a solution to find a library having a revision number ? You can specify the actual library file name libgfortran.so.3. However, you shouldn't need to find implicit compiler runtime libraries. Are you trying to mix C++ and

Re: [CMake] Finding dynamic libraries with major interface revision numbers (2)

2011-04-13 Thread Jean-Christophe Fillion-Robin
On Wed, Apr 13, 2011 at 3:26 PM, Brad King brad.k...@kitware.com wrote: On 04/13/2011 02:44 PM, Jean-Christophe Fillion-Robin wrote: Is there a solution to find a library having a revision number ? You can specify the actual library file name libgfortran.so.3. Great However, you

Re: [CMake] Finding dynamic libraries with major interface revision numbers (2)

2011-04-13 Thread Brad King
On 04/13/2011 03:37 PM, Jean-Christophe Fillion-Robin wrote: 1) I have a project XYZ that linked against VTK static which also linked GnuR shared [snip] /usr/bin/ld: /home/jchris/Projects/R-2.11.1/lib64/R/lib/libRlapack.so: error: undefined reference to '_gfortran_concat_string' Doesn't

Re: [CMake] Finding dynamic libraries with major interface revision numbers (2)

2011-04-13 Thread Michael Hertling
On 04/13/2011 09:26 PM, Brad King wrote: On 04/13/2011 02:44 PM, Jean-Christophe Fillion-Robin wrote: Is there a solution to find a library having a revision number ? You can specify the actual library file name libgfortran.so.3. AFAIK, this is not sufficient because FIND_LIBRARY() only

Re: [CMake] Finding dynamic libraries with major interface revision numbers (2)

2011-04-13 Thread Jean-Christophe Fillion-Robin
Yes it does ... see below Does that mean I specified something incorrectly within my project ? Note also that the problem occurs only when VTK is built statically ... Jc readelf -d /home/jchris/Projects/R-2.11.1/lib64/R/lib/libR.so |grep NEEDED 0x0001 (NEEDED) Shared

Re: [CMake] Finding dynamic libraries with major interface revision numbers (2)

2011-04-13 Thread Jean-Christophe Fillion-Robin
Thanks Michael Doing the following ends up working ... IF(UNIX) # If the faster 'gold' linker is used, to avoid complaints about undefined symbol # '_gfortran_concat_string', '_gfortran_pow_i4_i4', ... , let's link against gfortran libraries. # These errors happen while linking against VTK

[CMake] add_definition??

2011-04-13 Thread klaas.holwerda
Hi, I use ADD_DEFINITIONS( ${wxWidgets_DEFINITIONS} ) to add flags for compilation like this: set( wxWidgets_CXX_FLAGS ${wxWidgets_CXX_FLAGS} -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fexceptions -fno-pcc-struct-return -fstrict-aliasing -Wall#all warnings

Re: [CMake] embedded path in shared library linked into another shared library

2011-04-13 Thread Michael Hertling
On 04/13/2011 08:52 PM, Alexander Neundorf wrote: On Tuesday 12 April 2011, Michael Hertling wrote: On 04/11/2011 11:10 PM, David Aiken wrote: That didn't work for me.. I've got it simplified down to: SET(CMAKE_SKIP_RPATH TRUE) and in the CMakeCache.txt I see: CMAKE_SKIP_RPATH:BOOL=NO

Re: [CMake] DESTDIR behaviour with different variable name

2011-04-13 Thread Michael Hertling
On 04/12/2011 04:36 PM, Tomasz Grobelny wrote: On Tue, 12 Apr 2011 03:44:04 +0200, Michael Hertling mhertl...@online.de wrote: On 04/11/2011 10:42 PM, Tomasz Grobelny wrote: On Monday 11 April 2011 21:55:48 Alexander Neundorf wrote: On Monday 11 April 2011, Tomasz Grobelny wrote: On Mon, 11

Re: [CMake] add_definition??

2011-04-13 Thread Michael Wild
On 04/13/2011 11:50 PM, klaas.holwerda wrote: Hi, I use ADD_DEFINITIONS( ${wxWidgets_DEFINITIONS} ) to add flags for compilation like this: set( wxWidgets_CXX_FLAGS ${wxWidgets_CXX_FLAGS} -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fexceptions -fno-pcc-struct-return

[Cmake-commits] CMake branch, next, updated. v2.8.4-1433-g61e16cc

2011-04-13 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 61e16cce38de54d03806716f68882e57d9f06517 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.4-1440-g2567f7c

2011-04-13 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 2567f7c0f308ac7e06a21c77a35ed29f7e889097 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-363-g342628a

2011-04-13 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 342628aa202fb63713fc49948f365251f485fe02 (commit) from