Re: [CMake] Project initialization file path

2010-06-10 Thread Eric Noulard
2010/6/9 Aby Louw jal...@csir.co.za: Hi, I have a Linux project that reads an initialization file on startup to get some file names and variables. When doing an in-source or out of source build, I generate the initialization file in the CMAKE_BINARY_DIR and then also generate the C file

Re: [CMake] CPack NSIS translation

2010-06-10 Thread Eric Noulard
2010/6/9 Vincent LEFORT vincent.lef...@gmail.com: Hello, i want to use CPack to generate my installer instead of NSIS directly. Is it possible to have translation of my installer using CPack/CMake ? Automatic translation I don't think there exists some tools for that. However CPack NSIS

[CMake] darwin, cmake-2.8, gfortran from fink: option -arch not recognized

2010-06-10 Thread Daniel Franke
Hi all. I got gcc-4.4.4 for target i386-apple-darwin9.8.0 from fink. First I used cmake-2.6 (also from fink) and everything worked. Later, after an update to cmake-2.8 (again, from fink), and trying to rebuild my package, I got: f951: error: unrecognized command line option -arch As

Re: [CMake] CPack NSIS translation

2010-06-10 Thread Vincent LEFORT
Ok thanks. I will look at that. Thanks. On Thu, Jun 10, 2010 at 11:23, Eric Noulard eric.noul...@gmail.com wrote: 2010/6/9 Vincent LEFORT vincent.lef...@gmail.com: Hello, i want to use CPack to generate my installer instead of NSIS directly. Is it possible to have translation of my

[CMake] [Cmake] Detect caller project for a sub-project

2010-06-10 Thread Filippo Trimoldi
If I have a CMake project organized in more than two level, i.e. CMakeLists.txt: PROJECT(A) add_subdirectories(./projectB) ./projectB/CMakeLists.txt: PROJECT(B) add_subdirectories(${PROJECT_SOURCE_DIR}/projectC) ./projectB/projectC/CMakeLists.txt: PROJECT(C) is there some kind of way for a

[CMake] FIND_PACKAGE(OpenMP) and distcc, cmake 2.8.0

2010-06-10 Thread Hicham Mouline
Hello, My cmake system is configured to use distcc, as shown here: -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/local/bin/distcc -- Check for working C compiler: /usr/local/bin/distcc -- works -- Detecting C compiler ABI

Re: [CMake] [Cmake] Detect caller project for a sub-project

2010-06-10 Thread Andreas Mohr
On Thu, Jun 10, 2010 at 06:26:27AM -0400, cmake-requ...@cmake.org wrote: If I have a CMake project organized in more than two level, i.e. CMakeLists.txt: PROJECT(A) add_subdirectories(./projectB) ./projectB/CMakeLists.txt: PROJECT(B) add_subdirectories(${PROJECT_SOURCE_DIR}/projectC)

Re: [CMake] [Cmake] Detect caller project for a sub-project

2010-06-10 Thread Andreas Mohr
On Thu, Jun 10, 2010 at 12:00:06PM -0400, cmake-requ...@cmake.org wrote: On Thu, Jun 10, 2010 at 06:26:27AM -0400, cmake-requ...@cmake.org wrote: is there some kind of way for a project to detect the name of the project from which it was added? In this example, can C know that was added by B?

[CMake] vcproj2cmake.rb script: announcing new version / hosting questions

2010-06-10 Thread Andreas Mohr
Hello all, given great vcproj2cmake.rb work done by Jesper Eskilson (openly added in CC given his previous mailing list activity), I was able to enhance this wonderful script with certain extensions: - list _all_ configuration types - add indenting - add per-platform configuration of

Re: [CMake] vcproj2cmake.rb script: announcing new version / hosting questions

2010-06-10 Thread Alok Govil
Is there a possibility of adding VS2008 support? VS2008 supports compilation for 64 bit platforms. Albeit I am still to figure 64 bit compilation using gcc/MinGW with CMake itself. I have heard that VS2010 has changed the file-formats for project files. I am not keen on VS2010 support as

Re: [CMake] CXX incorrectly includes CMakeFortranInformation.cmake for MinGW/MSYS/Wine

2010-06-10 Thread Alan W. Irwin
On 2010-04-09 12:17-0400 David Cole wrote: A real fix for this has been committed to the CVS repository for kwsys. The change should appear in the CMake git repository shortly on 'master'... Thanks to Clinton Stimpson for the patch. cvs commit -m Patch to avoid short name usage where

Re: [CMake] Issue w/ relative library paths between targets in CMake 2.8 / Visual Studio 9 2008

2010-06-10 Thread David Cole
In your target_link_libraries statements, use: - cmake target names to link to, if there are cmake targets for the linked-to libraries, - full path file names for the libraries if there are not cmake targets for them Are you doing that? If so, 2.6 and 2.8 should work the same. HTH, David On

[CMake] When does fixup_bundle copy or not copy a library

2010-06-10 Thread kent williams
I had an issue with fixup_bundle skipping copying and fixing up a library upon which my application depended. This library's source was in a subdirectory of the application's build directory, and named in an add_subdirectory clause. My fixup_bundle recipe worked fine except for this one library.

Re: [CMake] CXX incorrectly includes CMakeFortranInformation.cmake for MinGW/MSYS/Wine

2010-06-10 Thread David Cole
On Thu, Jun 10, 2010 at 5:37 PM, Alan W. Irwin ir...@beluga.phys.uvic.cawrote: On 2010-06-10 16:20-0400 David Cole wrote: On Thu, Jun 10, 2010 at 4:17 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: On 2010-04-09 12:17-0400 David Cole wrote: A real fix for this has

[CMake] Modified FindDCMTK

2010-06-10 Thread Thomas Sondergaard
The FindDCMTK.cmake module in the git master branch doesn't find all the dcmtk libraries. I've attached a modified version of FindDCMTK that finds all the dcmtk libraries. It is also about 25% smaller as some duplicated code has been unified using FOREACH. I hope you will consider including

Re: [CMake] Modified FindDCMTK

2010-06-10 Thread Ryan Pavlik
On 06/10/2010 03:28 PM, Thomas Sondergaard wrote: The FindDCMTK.cmake module in the git master branch doesn't find all the dcmtk libraries. I've attached a modified version of FindDCMTK that finds all the dcmtk libraries. It is also about 25% smaller as some duplicated code has been unified

Re: [CMake] [Cmake] Detect caller project for a sub-project

2010-06-10 Thread Michael Hertling
On 06/10/2010 12:18 PM, Filippo Trimoldi wrote: If I have a CMake project organized in more than two level, i.e. CMakeLists.txt: PROJECT(A) add_subdirectories(./projectB) ./projectB/CMakeLists.txt: PROJECT(B) add_subdirectories(${PROJECT_SOURCE_DIR}/projectC)

Re: [CMake] CXX incorrectly includes CMakeFortranInformation.cmake for MinGW/MSYS/Wine

2010-06-10 Thread David Cole
On Thu, Jun 10, 2010 at 4:17 PM, Alan W. Irwin ir...@beluga.phys.uvic.cawrote: On 2010-04-09 12:17-0400 David Cole wrote: A real fix for this has been committed to the CVS repository for kwsys. The change should appear in the CMake git repository shortly on 'master'... Thanks to Clinton

Re: [CMake] CXX incorrectly includes CMakeFortranInformation.cmake for MinGW/MSYS/Wine

2010-06-10 Thread Alan W. Irwin
On 2010-06-10 16:20-0400 David Cole wrote: softw...@raven find -print0 -type f |xargs -0 grep -l shortPath ./Source/kwsys/SystemTools.cxx Wrong search. Sorry about that noise! If instead you search for GetShortPath there are lots of places in the CMake source tree that still refers to that

Re: [CMake] darwin, cmake-2.8, gfortran from fink: option -arch not recognized

2010-06-10 Thread Martin Costabel
Daniel Franke wrote: Hi all. I got gcc-4.4.4 for target i386-apple-darwin9.8.0 from fink. First I used cmake-2.6 (also from fink) and everything worked. Later, after an update to cmake-2.8 (again, from fink), and trying to rebuild my package, I got: f951: error: unrecognized command

Re: [CMake] Project initialization file path

2010-06-10 Thread Michael Hertling
On 06/10/2010 10:51 AM, Eric Noulard wrote: 2010/6/9 Aby Louw jal...@csir.co.za: Hi, I have a Linux project that reads an initialization file on startup to get some file names and variables. When doing an in-source or out of source build, I generate the initialization file in the

Re: [CMake] vcproj2cmake.rb script: announcing new version / hosting questions

2010-06-10 Thread Andreas Mohr
On Thu, Jun 10, 2010 at 11:44:01AM -0700, Alok Govil wrote: Sorry I was wrong. VS2005 does support compilation for 64 bits. Indeed it does, but maybe it has some weakness as compared to newer versions. Myself I'm not too interested in 64bit support though since there isn't even a chance's

Re: [CMake] CXX incorrectly includes CMakeFortranInformation.cmake for MinGW/MSYS/Wine

2010-06-10 Thread Alan W. Irwin
On 2010-06-10 16:20-0400 David Cole wrote: On Thu, Jun 10, 2010 at 4:17 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: On 2010-04-09 12:17-0400 David Cole wrote: A real fix for this has been committed to the CVS repository for kwsys. The change

Re: [CMake] basic problems using Qt4

2010-06-10 Thread Ryan Pavlik
On 06/10/2010 04:31 PM, Wasilios Goutas wrote: Hi, I try to create MinGW Makefiles for a Qt based application. The problem I get is that FIND_PACKAGE(Qt4 REQUIRED) generates Makefeiles where the include path is expanded to a file and not to a directory in CMakeDirectoryInformation.cmake I

[CMake] Eclipse Galileo and CDT version 6.0.2

2010-06-10 Thread Hugh Sorby
I am attempting to use Eclipse Galileo with CDT version 6.0.2 on windows 7 to do software development on. But I am unable to build the software. I am getting the following message in the console window in Eclipse. Error launching builder (nmake all ) (Cannot run program nmake: Launching

Re: [CMake] CXX incorrectly includes CMakeFortranInformation.cmake for MinGW/MSYS/Wine

2010-06-10 Thread Bill Hoffman
On 6/10/2010 6:27 PM, Alan W. Irwin wrote: On 2010-06-10 16:20-0400 David Cole wrote: softw...@raven find -print0 -type f |xargs -0 grep -l shortPath ./Source/kwsys/SystemTools.cxx Wrong search. Sorry about that noise! If instead you search for GetShortPath there are lots of places in the

[Cmake-commits] CMake branch, next, updated. v2.8.1-1371-gb998508

2010-06-10 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 b998508ee607fd1b728c8f00eb502a99a4bc7be1 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.1-1376-gbf445ae

2010-06-10 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 bf445ae6976b73de32d3bef2f1e22b5a8fb34567 (commit) via