[CMake] cmake+insure (or purify)

2010-05-18 Thread AKHRES Nader
Hi all, I'd like to use insure (or purify) for my project using cmake. Problematic is that you use 'insure gcc' instead of gcc for compilation and 'insure ld'/'insure gcc' for linking. I manage to make cmake take into account insure gcc for compilation but unfortunately I don't know how to choo

[CMake] ctest and files organization

2010-04-26 Thread AKHRES Nader
Hello, just wonder where you put your unitary test? What's is usual? in /src/unit_test? Nad ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic a

Re: [CMake] debug with codeblocks project

2010-04-05 Thread AKHRES Nader
n using a CMake-generated project file, if you need to change a project setting, do it in CMake rather than your IDE, since the CMake settings are the master ones used to generate the IDE data. Ryan On Sun, Apr 4, 2010 at 5:38 AM, AKHRES Nader <mailto:nader.akh...@laposte.net>> wrote:

[CMake] cmake+build machine

2010-04-05 Thread AKHRES Nader
Hello, does someone use a nightly build engine like CruiseControl with CMake? Does it make sense? Nad ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages o

[CMake] use of ${cmake_command}

2010-04-05 Thread AKHRES Nader
Hello, I've seen some examples where ${CMAKE_COMMAND} is used instead of cmake, typically in post build command Is it a better practice for portability? Nad ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.k

[CMake] debug with codeblocks project

2010-04-04 Thread AKHRES Nader
Hello, I still have issue to compil with debug info in codeblocks project (generated by cmake). When I set the "-g" options in codeblocks gui, it seems to have no effect (but I manage to get it somehow by cleaning/rebuilding but can't reproduce). If I've understood (could someone confirm tha

Re: [CMake] link issue with 2 statics lib->what's wrong in my cmake project

2010-03-16 Thread AKHRES Nader
thank you very much Bill, it works now! Is it a big deal if I let the lib A where you advise me to remove it? Le 16/03/2010 22:49, Bill Hoffman a écrit : AKHRES Nader wrote: Hello CMake community, I've two libs A and B where B depends on A. Then I have my final exe which depends on A

[CMake] link issue with 2 statics lib->what's wrong in my cmake project

2010-03-16 Thread AKHRES Nader
Hello CMake community, I've two libs A and B where B depends on A. Then I have my final exe which depends on A and B. When I generate exe project for gcc or mingw, I get undefined reference errors from B. This doesn't happen with visual c++. Here are my cmake files organization, with relevant

Re: [CMake] set proxy with cmake file download

2010-03-11 Thread AKHRES Nader
I'm using windows... maybe it works on linux, I'll have a try but I would need a way to make it works on windows as well Le 12/03/2010 03:48, Philip Lowman a écrit : Have you tried setting the http_proxy environment variable? export http_proxy="http://host:port"; On Thu, Mar 11, 2010 at 7:47 A

Re: [CMake] Decompressing a file with cmake

2010-03-08 Thread AKHRES Nader
master" then you can use cmake to do the decompression. HTH, David On Sat, Mar 6, 2010 at 6:33 PM, AKHRES Nader <mailto:nader.akh...@laposte.net>> wrote: Hello, is it possible to uncompress a zip file with cmake? I use file(download...) to get a zip from an url, bu

[CMake] Decompressing a file with cmake

2010-03-06 Thread AKHRES Nader
Hello, is it possible to uncompress a zip file with cmake? I use file(download...) to get a zip from an url, but I need to uncompress the downloaded archive... Nader ___ Powered by www.kitware.com Visit other Kitware open-source projects at http:/

Re: [CMake] generate multiple packages the easiest way

2010-02-27 Thread AKHRES Nader
normal cmake syntax to generate projects file... ] Le 27/02/2010 17:12, Eric Noulard a écrit : 2010/2/27 AKHRES Nader: ok, I manage to find another way: I do this SET(CPACK_GENERATOR_TXT "ZIP\;NSIS") #just escape ; so that it still a string SET(CPACK_GENERATOR ${CPACK_GE

Re: [CMake] generate multiple packages the easiest way

2010-02-27 Thread AKHRES Nader
you quick help, without you I would have seached in the wrong way! Le 27/02/2010 16:19, AKHRES Nader a écrit : unfortunately this won't work either cause it's still interpreted as a list... Here is my new idea: use a space separated string and turn into a list in last cmake sc

Re: [CMake] generate multiple packages the easiest way

2010-02-27 Thread AKHRES Nader
ZIP NSIS") SET(CPACK_GENERATOR ${CPACK_GENERATOR_TXT}) but CPACK_GENERATOR is not a list as I would have expected (I've read it somewhere). Do I have to use regexp somewhere? Le 27/02/2010 14:34, Eric Noulard a écrit : 2010/2/27 AKHRES Nader: I guess I've found my issue. I use a

Re: [CMake] generate multiple packages the easiest way

2010-02-27 Thread AKHRES Nader
I guess I've found my issue. I use a main script calling cmake command and passing CPACK_GENERATOR like this: -DCPACK_GENERATOR Maybe this don't work for list. Is there any way to pass a list to command line cmake? Le 27/02/2010 13:23, Eric Noulard a écrit : 2010/2/27 AK

[CMake] generate multiple packages the easiest way

2010-02-27 Thread AKHRES Nader
Hello, I've looked at the archive but can't find exactly the answer suiting to my case. I need to create several packages (for instance nsis AND zip) of exactly the same source tree (no components). I've first try to use a list for CPACK_GENERATOR (SET(CPACK_GENERATOR "NSIS" "ZIP")) but it gen