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 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 > apparent that a n

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, then...

[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 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 > ChangeLog > > I'm

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 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 ITEMS ${CMAKE_B

[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. > I

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 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: >> >> FOREAC

Re: [CMake] Generated files and dependencies

2011-06-16 Thread David Cole
On Thu, Jun 16, 2011 at 10:00 AM, Łukasz Tasz 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 library, >

Re: [CMake] ccmake options organization

2011-06-16 Thread Nicolas Desprès
On Mon, Jun 13, 2011 at 6:23 PM, Bill Hoffman 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 as advanced and k

[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 un

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, powere

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 does

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 wan

Re: [CMake] TGZ installer following links

2011-06-16 Thread Eric Noulard
2011/6/16 John R. Cary : > 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 copying th

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 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 version strings. This

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

2011-06-16 Thread Campbell Barton
2011/6/16 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, the

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. Cary: 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 Linux octet.carys.ho

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 : > > 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 plac

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 mention

Re: [CMake] TGZ installer following links

2011-06-16 Thread Eric Noulard
2011/6/16 John R. Cary : > On 6/16/11 12:09 PM, Eric Noulard wrote: >> >> 2011/6/16 John R. Cary: >>> >>> 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 versi

[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): n

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 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 the GEN_OUTFILES

[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 libgeotiff.

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.s