Re: [CMake] Baffled by CDT4 link_directories

2011-05-05 Thread Rolf Eike Beer
Am Donnerstag, 5. Mai 2011, 22:21:49 schrieb Dan Furtney: > I have a CMakelists.txt file that works properly for the “Unix Makefiles” > type build (Linux) and for VS 2008. When generating a CDT4 project (Linux) > from the same file, library paths are not resolved and the project won’t > link.

[CMake] Baffled by CDT4 link_directories

2011-05-05 Thread Dan Furtney
I have a CMakelists.txt file that works properly for the “Unix Makefiles” type build (Linux) and for VS 2008. When generating a CDT4 project (Linux) from the same file, library paths are not resolved and the project won’t link. The library paths are specified using the link_directories command e

Re: [CMake] cmake-2.8.4.tar.gz can't decompress (wrong checksum)

2011-05-05 Thread Paulo Silva
Followup, apparently it's chrome's fault. Tried it with safari and it works, but with chrome I "always" get the wrong checksum. wget also downloads correctly. Maybe a need to reinstall chrome... :p Sorry about that. On Fri, May 6, 2011 at 1:58 PM, Paulo Silva wrote: > Ok, lets forget about this.

Re: [CMake] cmake-2.8.4.tar.gz can't decompress (wrong checksum)

2011-05-05 Thread Paulo Silva
Ok, lets forget about this. I downloaded the file from another computer and if came out with the correct checksum. Go figure. In the end the problem is somewhere on my pc, but I guess I will never find out what it was. Cheers On Fri, May 6, 2011 at 12:59 PM, Paulo Silva wrote: > Hi there, > I'm

Re: [CMake] cmake-2.8.4.tar.gz can't decompress (wrong checksum)

2011-05-05 Thread Jean-Christophe Fillion-Robin
Hi Paulo, I just downloaded the file and everything seems to be fine. See below ... jchris@karakoram:~ $ wget http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gz --2011-05-06 00:29:15-- http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gz Resolving www.cmake.org... 66.194.253.19 Connecting to www

[CMake] cmake-2.8.4.tar.gz can't decompress (wrong checksum)

2011-05-05 Thread Paulo Silva
Hi there, I'm trying to install cmake-2.8.4.tar.gz. I tried to download it a number of times from http://www.cmake.org/files/v2.8/, but this file seems to be corrupted.(?) I always get a file with md5 026a61867cb0dd9375c2523282e28e7b which can't be decompressed. while the theoretically correct chec

Re: [CMake] How to add a target link library, but only for a custom configuration ?

2011-05-05 Thread Michael Hertling
On 05/05/2011 12:51 PM, Glenn Coombs wrote: > Thanks for that link Michael. It doesn't please me, but I can confirm that > it does work :-) It's a nice hack around a deficiency in cmake. I ended up > using this code: > > # First create a dummy library to hang the pthreads > # dependency on via

Re: [CMake] ProjectConfig.cmake files with both dynamic and static libraries?

2011-05-05 Thread Michael Hertling
On 05/04/2011 02:30 PM, Ben Morgan wrote: > Hi, > > I've been working on adding Config.cmake support to my CMake based > projects, and just had a quick question regarding 'best practice' in writing > these when the project builds both dynamic and (optionally) static > libraries, with clients of th

Re: [CMake] RPM packages and install(SCRIPT...)

2011-05-05 Thread Eric Noulard
2011/5/5 Judicaël Bedouet : > Hi, Hi Judicaël, > I use install(SCRIPT...) to make links during installation. It works with a > normal installation (make install) but the script seems not to be executed > by CPack or CPack RPM (I have not tested other generators). I could solve > the problem by ma

Re: [CMake] Enabling C++0x support

2011-05-05 Thread Alexander Neundorf
On Wednesday 04 May 2011, Guido Winkelmann wrote: > Hi, > > Is there a way to specify, in a cross-platform compatible manner, that a > given C++ source file (or a target or an entire project) requires support > for C++ 0x, so that whatever compiler flags would be necessary for that No, cmake does

[CMake] copile error cmake-2.8.4

2011-05-05 Thread Mizuho Matsunaga
Hi all I compile cmake-2.8.4 on Sparc Solaris10 by solstudio12.2. But this error occured. Linking CXX executable ../bin/ccmake ld: warning: file /lib/64/libmvec.so: linked to /usr/lib/sparcv9/libmvec.so: attempted multiple inclusion of file Undefined first referenced symbo

Re: [CMake] CTest dependencies on tests

2011-05-05 Thread Neil Chittenden
On 05/05/11 16:46, David Cole wrote: On Thu, May 5, 2011 at 11:10 AM, Neil Chittenden mailto:neilchitten...@quintessa.org>> wrote: Hi Using CTest, it is possible to set a dependency on another test using: add_test(test1 test1.sh this is test 1) add_test(test2 test2.sh thi

[CMake] RPM packages and install(SCRIPT...)

2011-05-05 Thread Judicaël Bedouet
Hi, I use install(SCRIPT...) to make links during installation. It works with a normal installation (make install) but the script seems not to be executed by CPack or CPack RPM (I have not tested other generators). I could solve the problem by making a specific RPM spec but the post-install code w

Re: [CMake] CTest dependencies on tests

2011-05-05 Thread David Cole
On Thu, May 5, 2011 at 11:10 AM, Neil Chittenden < neilchitten...@quintessa.org> wrote: > Hi > > Using CTest, it is possible to set a dependency on another test using: > > add_test(test1 test1.sh this is test 1) > add_test(test2 test2.sh this is test 2) > set_tests_properties(test1 PROPERTIES D

[CMake] CTest dependencies on tests

2011-05-05 Thread Neil Chittenden
Hi Using CTest, it is possible to set a dependency on another test using: add_test(test1 test1.sh this is test 1) add_test(test2 test2.sh this is test 2) set_tests_properties(test1 PROPERTIES DEPENDS test2) Is it possible to: a) only run a test (test1 in my example) if the test it depends

Re: [CMake] Changing installation prefix triggers re-linking of all libraries

2011-05-05 Thread Pere Mato Vila
> If I understand correctly, it's this second point which causes your > astonishment, but it already happens during the build phase in the > build tree, not just when installing with "make install", right? Yes, this is indeed my astonishment. I understand that for 'normal' projects this re-lin

Re: [CMake] Alternative toolchains? (alchemy, android ndk)

2011-05-05 Thread Michael Wild
On 05/05/2011 03:44 PM, Doug wrote: > I've seen a few things that use alternative gnu toolchains to build things. > > I haven't been able to figure out how to do this with cmake. Has anyone > managed? > > Examples: > http://labs.adobe.com/technologies/alchemy/ > http://developer.android.com/sdk/n

[CMake] Alternative toolchains? (alchemy, android ndk)

2011-05-05 Thread Doug
I've seen a few things that use alternative gnu toolchains to build things. I haven't been able to figure out how to do this with cmake. Has anyone managed? Examples: http://labs.adobe.com/technologies/alchemy/ http://developer.android.com/sdk/ndk/index.html Basically it seems I somehow need to

Re: [CMake] 'recursive' or multiple level @@ replacement in configure_file

2011-05-05 Thread David Cole
On Thu, May 5, 2011 at 7:08 AM, J.S. van Bethlehem < j.s.van.bethle...@astro.rug.nl> wrote: > Hello, > > Today I was trying something along the following lines: > in CMakeLists.txt > set(BASENAME some_text) > set(${BASENAME}_DIR /some/path) > set(${BASENAME}_SHARE /some/other/path) > set(${BASENAM

Re: [CMake] license

2011-05-05 Thread Adolfo Rodríguez Tsouroukdissian
On Thu, May 5, 2011 at 1:48 PM, gekso wrote: > Hello! Please help me to find details on the license about use of > CMake in commercial product. Is it BSD? > http://cmake.org/cmake/project/license.html HTH, -- Adolfo Rodríguez Tsouroukdissian Robotics engineer PAL ROBOTICS S.L http://www.pal

[CMake] license

2011-05-05 Thread gekso
Hello! Please help me to find details on the license about use of CMake in commercial product. Is it BSD? Thanks. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep m

[CMake] 'recursive' or multiple level @@ replacement in configure_file

2011-05-05 Thread J.S. van Bethlehem
Hello, Today I was trying something along the following lines: in CMakeLists.txt set(BASENAME some_text) set(${BASENAME}_DIR /some/path) set(${BASENAME}_SHARE /some/other/path) set(${BASENAME}_INCLUDES file1.h;file2.h;file3.h) configure_file(config.h.in config.h @ONLY) and in config.h.in do: set

Re: [CMake] How to add a target link library, but only for a custom configuration ?

2011-05-05 Thread Glenn Coombs
Thanks for that link Michael. It doesn't please me, but I can confirm that it does work :-) It's a nice hack around a deficiency in cmake. I ended up using this code: # First create a dummy library to hang the pthreads # dependency on via the IMPORTED_LINK_INTERFACE_LIBRARIES property. file(WRI