Re: [cmake-developers] [CMake 0012280]: FindSWIG won't find swig 1.3

2011-06-16 Thread Alan W. Irwin
On 2011-06-15 16:19-0400 Mantis Bug Tracker wrote: The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12280 == Reported By:

Re: [cmake-developers] [CMake 0012280]: FindSWIG won't find swig 1.3

2011-06-16 Thread Brad King
On 06/16/2011 12:54 PM, Alan W. Irwin wrote: Brad has accepted this patch and closed the bug. However, I am interested because PLplot uses swig-1.3 with no user reports of problems (has done for years). I personally have never seen swig finding problems for Linux and also a MinGW/MSYS/wine

[cmake-developers] [CMake 0012283]: Cmake -E echo kills performance of MinGW Makefiles

2011-06-16 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=12283 == Reported By:Jérôme Gardou Assigned To:

Re: [cmake-developers] Adding argument OPTIONAL to find_package() and add_subdirectory

2011-06-16 Thread Alexander Neundorf
On Thursday 09 June 2011, Brad King wrote: On 6/9/2011 8:50 AM, Alexander Neundorf wrote: ... I think this can be handled. find_package() should error out in this case, because Bar was required but it was disabled. Maybe this option to disable a find_package() could even be provided for

Re: [cmake-developers] Adding argument OPTIONAL to find_package() and add_subdirectory

2011-06-16 Thread Brad King
On 06/16/2011 04:15 PM, Alexander Neundorf wrote: I'll push a branch to the stage once 2.8.5 is released. Or can I do that earlier ? You can push it any time but skip merging it. Don't expect it to be in 2.8.5 though ;) Thanks, -Brad ___

Re: [CMake] Please help with procedure for making contributions

2011-06-16 Thread David Cole
On Wed, Jun 15, 2011 at 8:48 PM, Steven Velez sbv1...@gmail.com wrote: Hi All, After having searched the cmake web site and wiki, I have been unable to find a documented procedure for submitting patches to CMake. Via brwosing the bug tracker and watching this list, it seems generally

Re: [CMake] FindOpenEXR.cmake inclusion in cmake modules?

2011-06-16 Thread David Cole
First, ask if the module is really necessary. If, instead, you can add an OpenEXRConfig.cmake file to the OpenEXR project itself, and install it in a place that cmake's find_package will automatically find it, then a find module is unnecessary. However, if that's not possible or practical,

[CMake] git log automation in cmake

2011-06-16 Thread Kfir Lavi
Hi, Is there anyway to produce ChangeLog file from git, when running cmake on the code? For start, I would like the simple command: git log ChangeLog I'm running cmake like that: mkdir /tmp/builddir cd /tmp/builddir cmake /path/to/my/project Can this last command also generate ChangeLog on the

Re: [CMake] git log automation in cmake

2011-06-16 Thread David Cole
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:execute_process On Thu, Jun 16, 2011 at 8:45 AM, Kfir Lavi lavi.k...@gmail.com wrote: Hi, Is there anyway to produce ChangeLog file from git, when running cmake on the code? For start, I would like the simple command: git log

Re: [CMake] How to set a preprocessor define for all build configurations except one ?

2011-06-16 Thread Glenn Coombs
On 13 June 2011 02:53, Michael Hertling mhertl...@online.de wrote: AFAIK, there's no other approach to take account of single- and multi- config generators at the same time for this purpose, but perhaps, you could design the loop a bit smarter: FOREACH(i IN LISTS CMAKE_CONFIGURATION_TYPES

[CMake] Generated files and dependencies

2011-06-16 Thread Łukasz Tasz
Hi all, I have one issue with organising dependencies between projects. I have three projects, - first is application which contain static code of the application, - second is library which is contain code for the library, - third is library which generates the source code and headers,

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-16 Thread Łukasz Tasz
I don't understand what you mean by partially.  If you had cuda_add_executable(demo main.cxx demo1.cu demo2.cu), then main.cxx will be compiled by the host compiler, demo1.cu  and demo2.cu will be compiled by nvcc (CUDA + host compiler), and then all will be linked by the host linker. In

Re: [CMake] How to set a preprocessor define for all build configurations except one ?

2011-06-16 Thread Michael Hertling
On 06/16/2011 03:18 PM, Glenn Coombs wrote: On 13 June 2011 02:53, Michael Hertling mhertl...@online.de wrote: AFAIK, there's no other approach to take account of single- and multi- config generators at the same time for this purpose, but perhaps, you could design the loop a bit smarter:

Re: [CMake] Generated files and dependencies

2011-06-16 Thread David Cole
On Thu, Jun 16, 2011 at 10:00 AM, Łukasz Tasz luk...@tasz.eu wrote: Hi all, I have one issue with organising dependencies between projects. I have three projects, - first is application which contain static code of the application, - second is library which is contain code for the

Re: [CMake] ccmake options organization

2011-06-16 Thread Nicolas Desprès
On Mon, Jun 13, 2011 at 6:23 PM, Bill Hoffman bill.hoff...@kitware.com wrote: On 6/13/2011 11:02 AM, Szilárd Páll wrote: I would also very much like to see some form of grouping to be possible in ccmake. Right now, the only way to avoid clutter is to mark the large majority of the variables

[CMake] TGZ installer following links

2011-06-16 Thread John R. Cary
I am using the TGZ packager. My dist looks something like topdir nextdir link - nextdir/lowerdir lowerdir It seems that CPACK, instead of copying the link, follows the link so that I get two copies of lowerdir. Is this expected? Can I change this behavior? ThxJohn Cary

[CMake] Interrogate header files without TRY_RUN

2011-06-16 Thread David Gobbi
Hi All, Is there a way for CMake to search for macro definitions in header files without doing a try_run? The reason I'm asking is that eventually I'll require FindPython.cmake to report the version of python that it finds. But I don't want to do this by checking the directory names (which is

Re: [CMake] Doesn't support SHARED libraries during cross compiling using ARM RVCT40.

2011-06-16 Thread Alexander Neundorf
On Thursday 16 June 2011, jianhua wrote: Hi Neundorf; Thanks for your continuous help, you have helped me to solve 2 threads now. After remove line SET (CMAKE_SYSTEM_NAME Generic) now it works. The target device OS is Brew MP, something like eCos, but it is much simpler, powered by

Re: [CMake] How does cmake find libraries?

2011-06-16 Thread Alexander Neundorf
On Thursday 16 June 2011, Doug wrote: I've not had a problem with this before, but I'm having an odd issue where cmake is finding libpng when it doesn't exist on an OSX machine. I'm using Findlibpng.cmake: include(LibFindMacros) find_path(LIBPNG_INCLUDE_DIR NAMES png.h PATHS

Re: [CMake] How does cmake find libraries?

2011-06-16 Thread John Drescher
   [ 74%] Built target test_sethandler    make[2]: *** No rule to make target `/usr/local/lib/libpng.dylib', needed by `tests/na/common/test_common'.  Stop.    make[1]: *** [tests/na/common/CMakeFiles/test_common.dir/all] Error 2 The obvious reason is that /usr/local/lib/libpng.dylib doesn't

Re: [CMake] FindOpenEXR.cmake inclusion in cmake modules?

2011-06-16 Thread Alexander Neundorf
On Thursday 16 June 2011, David Cole wrote: First, ask if the module is really necessary. If, instead, you can add an OpenEXRConfig.cmake file to the OpenEXR project itself, and install it in a place that cmake's find_package will automatically find it, then a find module is unnecessary.

Re: [CMake] Interrogate header files without TRY_RUN

2011-06-16 Thread Alexander Neundorf
On Thursday 16 June 2011, David Gobbi wrote: Hi All, Is there a way for CMake to search for macro definitions in header files without doing a try_run? The reason I'm asking is that eventually I'll require FindPython.cmake to report the version of python that it finds. But I don't want to

Re: [CMake] TGZ installer following links

2011-06-16 Thread Eric Noulard
2011/6/16 John R. Cary c...@txcorp.com: I am using the TGZ packager. Which version of CMake/CPack ? On which platform(s) ? Do you use CPack alone or CMake+CPack? My dist looks something like        topdir  nextdir  link - nextdir/lowerdir  lowerdir It seems that CPACK, instead of

Re: [CMake] Interrogate header files without TRY_RUN

2011-06-16 Thread David Gobbi
On Thu, Jun 16, 2011 at 10:58 AM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: You could simply read the header file and try to grep fpor the version numbers. Works quite good in many cases. Or you could try to mess around with try_compile(), and search in the produced binary for the

Re: [CMake] FindOpenEXR.cmake inclusion in cmake modules?

2011-06-16 Thread Campbell Barton
2011/6/16 Alexander Neundorf a.neundorf-w...@gmx.net: On Thursday 16 June 2011, David Cole wrote: First, ask if the module is really necessary. If, instead, you can add an OpenEXRConfig.cmake file to the OpenEXR project itself, and install it in a place that cmake's find_package will

Re: [CMake] TGZ installer following links

2011-06-16 Thread John R. Cary
On 6/16/11 12:09 PM, Eric Noulard wrote: 2011/6/16 John R. Caryc...@txcorp.com: I am using the TGZ packager. Sorry, my error in not providing more complete info: Which version of CMake/CPack ? On which platform(s) ? octet.cary$ cmake --version cmake version 2.8.3 octet.cary$ uname -a

Re: [CMake] FindOpenEXR.cmake inclusion in cmake modules?

2011-06-16 Thread Alexander Neundorf
On Thursday 16 June 2011, Campbell Barton wrote: 2011/6/16 Alexander Neundorf a.neundorf-w...@gmx.net: On Thursday 16 June 2011, David Cole wrote: First, ask if the module is really necessary. If, instead, you can add an OpenEXRConfig.cmake file to the OpenEXR project itself, and install

Re: [CMake] Please help with procedure for making contributions

2011-06-16 Thread Steven Velez
Thanks for the follow-up. We are aware that the idea is to copy and freely distribute the code and all contributions. I think the idea is that IF we are required to sign an agreement, then it doesn't impose any odd, additional requirements/request of us. I think our legal department also

Re: [CMake] TGZ installer following links

2011-06-16 Thread Eric Noulard
2011/6/16 John R. Cary c...@txcorp.com: On 6/16/11 12:09 PM, Eric Noulard wrote: 2011/6/16 John R. Caryc...@txcorp.com: I am using the TGZ packager. Sorry, my error in not providing more complete info: Which version of CMake/CPack ? On which platform(s) ? octet.cary$ cmake --version

[CMake] vtk iOS

2011-06-16 Thread Sason Ohanian Saki
Hi! Im trying to build vtk for iOS and get the following issue when when running cmake with my modified cmake file. -- Check if the system is big endian -- Searching 16 bit integer CMake Error at /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (MESSAGE):

Re: [CMake] How to set a preprocessor define for all build configurations except one ?

2011-06-16 Thread Glenn Coombs
On 16 June 2011 15:45, Michael Hertling mhertl...@online.de wrote: IMO, the default should not need to be explicitly enabled but the exception, and readability - though important - is subordinate to functionality, but probably, this is a matter of personal taste. However, if you stick with

[CMake] Dependencies and libraries..How does it work?

2011-06-16 Thread David Springate
Hi, I am new to CMake - and whilst I am immediately impressed with it's relative ease of use - I have a 'noob' question, I'm sure! I have the following: A library called MY_LIB that builds with a cmake command (I have created a nice CMakeLists.txt file) An application called MY_APP that builds a

[CMake] Library numeric extension?

2011-06-16 Thread David Doria
I added a simple: target_link_libraries(myprogram geotiff) to my CMakeLists.txt file. I have a libgeotiff.so in a directory on my LD_LIBRARY_PATH. The code compiled, but when I tried to run it, I got an error that I was missing libgeotiff.so.2. I made a symlink from libgeotiff.so.2 to

Re: [CMake] Library numeric extension?

2011-06-16 Thread Michael Wild
On 06/16/2011 11:56 PM, David Doria wrote: I added a simple: target_link_libraries(myprogram geotiff) to my CMakeLists.txt file. I have a libgeotiff.so in a directory on my LD_LIBRARY_PATH. The code compiled, but when I tried to run it, I got an error that I was missing libgeotiff.so.2. I

[Cmake-commits] CMake branch, next, updated. v2.8.4-1770-g8b4d14c

2011-06-16 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 8b4d14c735de706995138e830fa015a49193fac3 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.4-1772-g3b379b5

2011-06-16 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 3b379b56dfd07e96b812248c7df239c57aebe195 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-573-g594681d

2011-06-16 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 594681d2c4b99024a667b6dc0d6d354a93392069 (commit) from