[CMake] Help for File command

2011-07-21 Thread Julien Dardenne
Hi, is it possibleto list thesubdirectoriesfrom agiven folder? I usethis functionbut itreturnsmethefilein thecurrent path. macro(list_subdirectories retval curdir return_relative) file(GLOB sub-dir RELATIVE ${curdir} *) set(list_of_dirs ) foreach(dir ${sub-dir}) if(IS_DIRECTORY

Re: [CMake] Assembler handling in 2.8.5 vs 2.8.4

2011-07-21 Thread Florian Reinhard
Hi Alex, Thank you for the quick response, 2011/7/20 Alexander Neundorf a.neundorf-w...@gmx.net: Damn, I was so sure I updated the wiki, but apparently I didn't. So here are the old docs, but this changed quite a bit for 2.8.5: http://www.vtk.org/Wiki/CMake/Assembler What it does now: the

Re: [CMake] Why is macro PARSE_ARGUMENTS() not part of standard CMake modules?

2011-07-21 Thread Marcel Loose
Ah, sorry. I didn't check the (almost) latest cmake. I'm currently stuck with Ubuntu LTS 10.04, which ships cmake 2.8.0. I'll backport then. Regards, Marcel Loose. On Wed, 2011-07-20 at 22:14 +0200, Alexander Neundorf wrote: On Wednesday 20 July 2011, Jean-Christophe Fillion-Robin wrote: Hi

Re: [CMake] [CPack] post install scripts

2011-07-21 Thread Domagoj Saric
On 19.7.2011. 13:41, Domagoj Saric wrote: Hi, I'm using CMake 2.8.5 and OS X 10.6.8. I'm trying to create an multi component installer with CPack and PackageMaker (an .mpkg) that would create a symlink as a post installation step. Simplified: the installer installs directories A and B and then I

Re: [CMake] Disabling regexing paths?

2011-07-21 Thread David Cole
On Thu, Jul 21, 2011 at 1:44 AM, Michael Wild them...@gmail.com wrote: On 07/21/2011 07:07 AM, Jookia wrote: Running the follow file causes problems: if(NOT ${CMAKE_BINARY_DIR} MATCHES ${CMAKE_SOURCE_DIR}) endif() MATCHES matches the LHS string against the regex on the RHS.

Re: [CMake] Disabling regexing paths?

2011-07-21 Thread Jookia
Ah, thanks guys. STREQUAL does the trick. Sorry for the bother and lack of quotes. Jookia. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

Re: [CMake] [CPack] post install scripts

2011-07-21 Thread David Cole
On Thu, Jul 21, 2011 at 5:01 AM, Domagoj Saric domagoj.sa...@littleendian.com wrote: On 19.7.2011. 13:41, Domagoj Saric wrote: Hi, I'm using CMake 2.8.5 and OS X 10.6.8. I'm trying to create an multi component installer with CPack and PackageMaker (an .mpkg) that would create a symlink as

Re: [CMake] How pass a -spec parameter to FindQt4.cmake?

2011-07-21 Thread clinton
- Original Message - Hi Clint and thanks for your advices (sorry about the delayed answer), On Tue, Jul 19, 2011 at 1:33 AM, clin...@elemtech.com clin...@elemtech.com wrote: When cross compiling, only some the qmake queries are actually used. Finding the rest just works if

[CMake] Bug in cmake 2.8.4/5 when using IMPORTED static targets?

2011-07-21 Thread Marco Corvo
Hi all, I'm trying to use a new feature of releases 2.8.4/5, that is the possibility to define dependencies for IMPORTED targets and when I run cmake I get a SIGSEV signal. Trying to get some more info with Valgrind I found that: -- Configuring done ==5659== Invalid read of size 1 ==5659==

Re: [CMake] Bug in cmake 2.8.4/5 when using IMPORTED static targets?

2011-07-21 Thread David Cole
Is your project publicly available? Or can you construct a minimal reproduce case? I'd like to reproduce that issue here and then get a fix in ASAP. Thanks, David On Thu, Jul 21, 2011 at 1:07 PM, Marco Corvo marco.co...@pd.infn.it wrote: Hi all, I'm trying to use a new feature of

Re: [CMake] Assembler handling in 2.8.5 vs 2.8.4

2011-07-21 Thread Alexander Neundorf
Hi Florian, On Thursday 21 July 2011, Florian Reinhard wrote: Hi Alex, Thank you for the quick response, Can you please create a ticket in the cmake bug tracker at http://public.kitware.com/Bug and put all the information there ? I'll assign it to me, and we should get it working.

Re: [CMake] How pass a -spec parameter to FindQt4.cmake?

2011-07-21 Thread Daniel Näslund
On Thu, Jul 21, 2011 at 7:00 PM, clin...@elemtech.com wrote: Managed to compile and link when I added the following snippet to the toolchain file:     set(QT_HEADERS_DIR /opt/env/lenny-ppc/usr/lib)     set(QT_LIBRARY_DIR /opt/env/lenny-ppc/usr/include/qt4)     set(QT_QTCORE_LIBRARY