Re: [CMake] Usage of export(PACKAGE ...)

2013-03-28 Thread Jean-Christophe Fillion-Robin
@cmake.org Sent: Thu, Mar 28, 2013 5:12 pm Subject: Re: [CMake] Usage of export(PACKAGE ...) Jean-Christophe Fillion-Robin wrote: Hi Folks, I would like to discussed the usable of export(PACKAGE ...) statement. Based on my experience, it turns out that exporting the build tree

Re: [CMake] HTTP Content-Length missing

2013-03-04 Thread Jean-Christophe Fillion-Robin
FYI - The discussion has been moved to the CDash mailing list. See http://public.kitware.com/pipermail/cdash/2013-March/001274.html Jc On Mon, Mar 4, 2013 at 1:03 PM, Martin Baute so...@rootdirectory.de wrote: Hi there, I'm trying to get the CMake / CTest / CDash trinity going. Unfortunately

Re: [CMake] How to make ccmake automatic run to select all modules in a script?

2013-03-02 Thread Jean-Christophe Fillion-Robin
Hi Jupiter, You could look at http://www.cmake.org/cmake/help/v2.8.10/cmake.html#section_Options And more particularly at: http://www.cmake.org/cmake/help/v2.8.10/cmake.html#opt:-Dvar:typevalue Hth Jc On Sat, Mar 2, 2013 at 3:49 AM, hce jupiter@gmail.com wrote: Hi, I am writing a

Re: [CMake] Per-target include dirs that work in both 2.8.7 and 2.8.10.2?

2013-02-28 Thread Jean-Christophe Fillion-Robin
Hi Magnus, As already mentioned, the target property INCLUDE_DIRECTORIES has been introduced in CMake 2.8.8. The following page is useful to find out such things. See http://www.cmake.org/Wiki/CMake_Version_Compatibility_Matrix/Properties#Properties_on_Targets To get around it, as mentioned by

Re: [CMake] ctest git submodules

2013-02-26 Thread Jean-Christophe Fillion-Robin
+1 to add these into CTest :) What would be the argument against it ? Jc On Tue, Feb 26, 2013 at 2:40 PM, Marcus D. Hanwell marcus.hanw...@kitware.com wrote: On Tue, Feb 26, 2013 at 2:36 PM, Clinton Stimpson clin...@elemtech.com wrote: Thanks. I may have to do that for now. However,

Re: [CMake] CMake'ified Boost

2013-02-24 Thread Jean-Christophe Fillion-Robin
with, but I didn't have time to investigate in detail yet. Regards, James On 21 Feb 2013, at 17:59, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com wrote: Hi James, On a slightly different topic, you mentioned you were using Boost, did you find a version of boost 1.49

Re: [CMake] Please critique my hello world CMakeLists.txt and Config.cmake

2013-02-23 Thread Jean-Christophe Fillion-Robin
Hi Chris, To make the process easier, could you create a small project on Gtihub. We would then be able to comment on a line-by-line basis. Hth Jc On Sat, Feb 23, 2013 at 11:37 PM, Chris Stankevitz chrisstankev...@gmail.com wrote: Hello, Would you please critique my CMakeLists.txt and

Re: [CMake] CMake'ified Boost

2013-02-22 Thread Jean-Christophe Fillion-Robin
Thanks for the pointer. I am curious to set what will be the outcome. I will try to contact them to see why the github repo is down: http://github.com/boost-lib On Thu, Feb 21, 2013 at 1:42 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 2/21/2013 12:59 PM, Jean-Christophe Fillion-Robin

[CMake] CMake'ified Boost

2013-02-21 Thread Jean-Christophe Fillion-Robin
Hi James, On a slightly different topic, you mentioned you were using Boost, did you find a version of boost 1.49 that was CMake'ified ? Here is the one I found: http://gitorious.org/boost/cmake/trees/cmake-1.49.0 Thanks Jc On Thu, Feb 21, 2013 at 12:39 PM, Bill Hoffman

Re: [CMake] How about a CMake debugger?

2013-02-21 Thread Jean-Christophe Fillion-Robin
Hi Kent, Matt started to work on a debugger last year, any contribution would be welcome. See https://github.com/thewtex/cmakedbg Hth Jc On Thu, Feb 21, 2013 at 3:32 PM, Kent Williams nkwmailingli...@gmail.comwrote: As I'm now deep in tracing through 80K lines of cmake --trace output, man

Re: [CMake] Install on Ubuntu

2013-02-20 Thread Jean-Christophe Fillion-Robin
Hi Alain, Instead, in a terminal you could simply do the following: cd mkdir Support cd Support \ wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2-Linux-i386.tar.gz \ tar -xzvf cmake-2.8.10.2-Linux-i386.tar.gz \ ./cmake-2.8.10.2-Linux-i386/bin/cmake -version This will create a

Re: [CMake] Install on Ubuntu

2013-02-20 Thread Jean-Christophe Fillion-Robin
, Feb 20, 2013 at 3:58 PM, Alain Aupeix alain.aup...@wanadoo.frwrote: Le 20/02/2013 21:35, Jean-Christophe Fillion-Robin a écrit : Hi Alain, Instead, in a terminal you could simply do the following: cd mkdir Support cd Support \ wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2-Linux

Re: [CMake] Install CMake Nightly fails on Mac with old CMake installed

2013-02-15 Thread Jean-Christophe Fillion-Robin
Hi Folks, For reference: A similar issue regarding XCode 4.5.X as been submitted and resolved - See http://cmake.org/Bug/view.php?id=13765 May be something change with XCode 4.6 Jc On Fri, Feb 15, 2013 at 10:39 AM, Daniel Haehn daniel.ha...@childrens.harvard.edu wrote: Hi guys, I am

Re: [CMake] Install CMake Nightly fails on Mac with old CMake installed

2013-02-15 Thread Jean-Christophe Fillion-Robin
Hi Daniel, The issue has been re-opened. Can you reproduce the problem using the toy project referenced here: http://www.cmake.org/Bug/view.php?id=13765#c32292 Thanks Jc On Fri, Feb 15, 2013 at 10:56 AM, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com wrote: Hi Folks

Re: [CMake] Install CMake Nightly fails on Mac with old CMake installed

2013-02-15 Thread Jean-Christophe Fillion-Robin
...@childrens.harvard.edu wrote: Hi JC, well - right now I don't have CMake at all due to the installation issue :/ Cheers, Daniel On Fri, Feb 15, 2013 at 1:36 PM, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com wrote: Hi Daniel, The issue has been re-opened. Can you reproduce

Re: [CMake] 2.8.11 release date, the git repo. for 2.8.11

2013-02-14 Thread Jean-Christophe Fillion-Robin
Hi Shirish, Waiting for the release, you could simply download the latest nightly build. See http://www.cmake.org/files/dev/?C=M;O=D This link was obtained from the CMake website (CMake - Resources - Download - Current development) Hth Jc On Thu, Feb 14, 2013 at 8:23 AM, shirish शिरीष

Re: [CMake] CPack: Packaging debug and release configurations in a single zip

2013-02-07 Thread Jean-Christophe Fillion-Robin
The approach suggested by Ansis looks interesting. Instead of using install(FILES ...), you could use CPACK_INSTALL_CMAKE_PROJECTS [1][2]. For an example, see [3] and [4] [1] http://www.cmake.org/cmake/help/v2.8.8/cpack.html#variable:CPACK_INSTALL_CMAKE_PROJECTS [2]

Re: [CMake] Building CMake 2.8.10.2 -- package created named cmake-2.8.10.2-Darwin-i386.dmg?

2013-02-05 Thread Jean-Christophe Fillion-Robin
Hi Kent, Probably because the CPACK_SYSTEM_NAME is explicitly specified. See http://cmake.org/gitweb?p=cmake.git;a=blob;f=Utilities/Release/dashmacmini5_release.cmake;h=36b095287e80d26ed1b684b6c1a69d9bda1963ba;hb=HEAD#l19 Hth Jc On Tue, Feb 5, 2013 at 9:47 AM, Kent Williams

Re: [CMake] Building CMake 2.8.10.2 -- package created named cmake-2.8.10.2-Darwin-i386.dmg?

2013-02-05 Thread Jean-Christophe Fillion-Robin
Few pointers talking about the issue: - http://yourmacguy.wordpress.com/2009/08/24/boot-snow-leopard-64-bit/ - http://arstechnica.com/apple/2009/08/mac-os-x-10-6/5/ Hth Jc On Tue, Feb 5, 2013 at 11:00 AM, Sean McBride s...@rogue-research.comwrote: On Tue, 5 Feb 2013 09:22:35 -0600, Kent

Re: [CMake] When should I use add_subdirectory and when ExternalProject?

2013-02-05 Thread Jean-Christophe Fillion-Robin
Hi Alex, You could probably pass the CMAKE_INSTALL_PREFIX option. For example: https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_DCMTK.cmake#L44 Hth Jc On Tue, Feb 5, 2013 at 1:10 PM, Alexander Neundorf a.neundorf-w...@gmx.netwrote: On Monday 04 February 2013, David Cole

Re: [CMake] Any portable way in CMake build tree to find Source tree path?

2013-01-25 Thread Jean-Christophe Fillion-Robin
Hi Kent, On all the platform, the build tree contains a CMakeCache.txt that will systematically contain the following text: FOO_SOURCE_DIR:STATIC=/path/to/foosource where FOO is the name of the project. You could simply check for the existence of CMakeCache.txt, and extact the value using

Re: [CMake] Disable Warning: Manually-specified variables were not used by the project

2012-11-27 Thread Jean-Christophe Fillion-Robin
Hi Sören, Command line option --no-warn-unused-cli should help you. See http://www.cmake.org/cmake/help/v2.8.8/cmake.html#opt:--no-warn-unused-cli and http://www.cmake.org/pipermail/cmake/2011-February/042908.html Hth Jc On Tue, Nov 27, 2012 at 10:10 AM, Sören Textor

[CMake] How to update CTestCustom.cmake.in so that message like You are in 'detached HEAD' state. are ignored ?

2012-10-23 Thread Jean-Christophe Fillion-Robin
Hi Folks, I tried to add an exception to CTestConfig.cmake [1] so that message like *You are in 'detached HEAD' state* are not reported by it seems I am missing something. CTestCustom.cmake.in: https://github.com/Slicer/Slicer/blob/master/CMake/CTestCustom.cmake.in#L242-243 CDash output:

Re: [CMake] New version of FindGit.cmake compatible with FindSubversion.cmake

2012-07-12 Thread Jean-Christophe Fillion-Robin
Hi Folks, I also think contributing this module back to CMake would be great. This has been discuss on the list [1], few things need to be fixed and as discussed documentation updated. The module could also probably be split into: FindGit.cmake and GitInfo.cmake (or similar name) First, we

Re: [CMake] All right all you CMake test writers....

2012-07-11 Thread Jean-Christophe Fillion-Robin
Hi Kent, Given the fact the parameter -R accepts a regular expression, you could use the ^ and $ associated with regular expression. In your case, running: ctest -R ^Foo$ will only execute test matching Foo where as running ctest -R Foo will execute tests having the string Foo within

Re: [CMake] Accepted way to add -fPIC onto CMAKE_CXX_FLAGS?

2012-06-18 Thread Jean-Christophe Fillion-Robin
Hi Michael, To apply the flag on a specific target, consider looking at: https://github.com/commontk/Log4Qt/blob/patched/CMakeLists.txt#L116 Hth Jc On Mon, Jun 18, 2012 at 8:23 PM, Michael Jackson mike.jack...@bluequartz.net wrote: Thanks everyone for the help. I really have a typo in my

Re: [CMake] Calling NMake from CMake

2012-06-16 Thread Jean-Christophe Fillion-Robin
Hi Brian, While I am not directly answering your question, if you want to build zlib in a cross-platform fashion, you could probably have a look at: https://github.com/commontk/zlib Hth Jc On Sat, Jun 16, 2012 at 5:11 PM, Brian J. Davis bitmi...@gmail.com wrote: Since I do not see a

[CMake] set command - Proposed patch for more explicit documentation associated with INTERNAL cache type

2012-06-12 Thread Jean-Christophe Fillion-Robin
Hi Folks, Currently the documentation associated with set command is the following: [...] FILEPATH = File chooser dialog. PATH = Directory chooser dialog. STRING = Arbitrary string. BOOL = Boolean ON/OFF checkbox. INTERNAL = No GUI

Re: [CMake] Default value for CMAKE_BUILD_TYPE

2012-05-14 Thread Jean-Christophe Fillion-Robin
On Mon, May 14, 2012 at 11:16 AM, pellegrini pellegr...@ill.fr wrote: On 5/11/2012 5:30 PM, Jean-Christophe Fillion-Robin wrote: Hi Eric, In our different projects, we use an approach similar to this one: # Set a default build type if none was specified if(NOT CMAKE_BUILD_TYPE

Re: [CMake] Default value for CMAKE_BUILD_TYPE

2012-05-11 Thread Jean-Christophe Fillion-Robin
Hi Eric, In our different projects, we use an approach similar to this one: # Set a default build type if none was specified if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) message(STATUS Setting build type to 'Debug' as none was specified.) set(CMAKE_BUILD_TYPE Debug CACHE STRING

Re: [CMake] ExternalProject danger- source directory is deleted

2012-05-09 Thread Jean-Christophe Fillion-Robin
Hi Pat, In some extent, I think the problem has been addressed in CMake master. See http://public.kitware.com/gitweb?p=cmake.git;a=commitdiff;h=987c017f6b1b49ab832c244166e30e07260432da http://public.kitware.com/gitweb?p=cmake.git;a=commitdiff;h=987c017f6b1b49ab832c244166e30e07260432da and

Re: [CMake] Zero coverage being reported on gcc/Linux builds.

2012-04-25 Thread Jean-Christophe Fillion-Robin
Hi Brad, Consider looking at https://github.com/Slicer/Slicer/blob/master/CMake/SlicerDashboardDriverScript.cmake#L246 Hth Jc On Tue, Apr 24, 2012 at 9:13 AM, Bradley Lowekamp blowek...@mail.nih.govwrote: Hello, Are both of these project using SuperBuilds? I know with SimpleITK I was

Re: [CMake] Couple of library/link questions

2012-03-20 Thread Jean-Christophe Fillion-Robin
Hi Olivier, Assuming you have not set the flag, BUILD_SHARED_LIBS [1] set to TRUE, I will consider you are building static libraries. If this last statement is valid, it seems your approach is the right one. I would also recommend you to read the following entry:

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-08 Thread Jean-Christophe Fillion-Robin
Hi Michael, May be you could have a look at [1], [2] and [3]. It basically illustrates how to moc a header a file and include at the end of cpp file. Hth Jc [1] https://github.com/commontk/CTK/blob/master/Libs/Testing/CMake/ctkMacroGenerateMocs.cmake [2]

Re: [CMake] lexical scoping ... back to the future !

2012-02-22 Thread Jean-Christophe Fillion-Robin
Hi François, Would the use of function be helpful ? See http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:function and http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:set If PARENT_SCOPE is present, the variable will be set in the scope above the current scope. Each new

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Jean-Christophe Fillion-Robin
An possible alternative could be to associate one or more labels to your tests, then you should be able to run a specific subset of the test suite. See http://www.cmake.org/cmake/help/ctest-2-8-docs.html#opt:-Lregex--label-regexregex and

Re: [CMake] Utilities/cmcurl/CMakeLists.txt patch

2012-02-07 Thread Jean-Christophe Fillion-Robin
There is a corresponding issue in the tracker: http://www.cmake.org/Bug/view.php?id=11743 Jc On Tue, Feb 7, 2012 at 2:38 PM, Kedzierski, Artur CIV NSWC Corona, PA13 artur.kedzier...@navy.mil wrote: Can we have an option to set built-in Curl's CA certificate bundle path? Currently, there is

Re: [CMake] runtime dependencies for tests

2012-01-31 Thread Jean-Christophe Fillion-Robin
Hi Alessio, You could either use a forwarded launcher is it's done in paraview. See Applications/ParaView/CMakeLists.txthttp://paraview.org/gitweb?p=ParaView.git;a=blob;f=Applications/ParaView/CMakeLists.txt;h=d7850949dbddf218d1a908605748aa0580d5db68;hb=HEAD#l49,

Re: [CMake] Multiple tests in a single file

2012-01-06 Thread Jean-Christophe Fillion-Robin
Hi David, Not too long ago I was browsing the project of a friend who worked on BTK (The toolkit used by Mokka, a motion kinematic kinetic analyser) [1]. I noticed that he is using *cxxtest* [2] along with *ctest*. It seems it could to address the use case you are describing. See Example

Re: [CMake] compiling problem cmake

2012-01-03 Thread Jean-Christophe Fillion-Robin
-- From: Bram Kouwenberg kouwenberg.b...@gmail.com Date: Tue, Jan 3, 2012 at 2:43 AM Subject: Re: [CMake] compiling problem cmake To: Jean-Christophe Fillion-Robin jchris.filli...@kitware.com Cc: cmake@cmake.org the python source i got from http://python.org/ftp/python/2.5.6/ the directions I

Re: [CMake] compiling problem cmake

2012-01-02 Thread Jean-Christophe Fillion-Robin
Hi Bram, In order to reproduce and understand the problem, would also be great to point us to a repository or place to download the sources. Additionally, could you also mention which version of CMake and which generator you were using ? Hth Jc On Mon, Jan 2, 2012 at 6:30 PM, Bram Kouwenberg

Re: [CMake] CMake podcast

2011-12-31 Thread Jean-Christophe Fillion-Robin
Great podcast ! Thanks Matt for putting it together. Jc On Sat, Dec 31, 2011 at 11:49 AM, Matthew McCormick matthew.m.mccorm...@gmail.com wrote: A new podcast on CMake has been posted featuring Bill Hoffman and David Cole: http://inscight.org/2011/12/31/episode-21-cmake/ Enjoy! Matt

Re: [CMake] Suggestions on documenting my CMake modules

2011-10-29 Thread Jean-Christophe Fillion-Robin
Hi Robert, Within CTK http://commontk.org, Sasha implemented a Doxygen filter for CMake. You could refer to the following: https://github.com/saschazelzer/CMakeDoxygenFilter/blob/master/README https://github.com/commontk/CTK/blob/master/CMake/ctkFunctionCMakeDoxygenFilterCompile.cmake Hth Jc

Re: [CMake] overriding ${PROJECTNAME}_BINARY_DIR before call to project()

2011-09-28 Thread Jean-Christophe Fillion-Robin
Hi Thomas, You will find below few points that should help you to address your issues: 1) CTK build system can be build with the option CTK_SUPERBUILD set to OFF, in that case the project will be built as a regular cmake project. 2) You could also build CTK normally (default option) providing

Re: [CMake] CMake 2.8.6-rc4 ready for testing!

2011-09-22 Thread Jean-Christophe Fillion-Robin
Hi Dave, Would it be possible to include the following topic in the release: https://github.com/jcfr/CMake/tree/check-ctestconfig-in-builddir The change is documented and tests have been added: Expect CTestConfig.cmake in either the build or source

Re: [CMake] Adding a custom line to CMake's makefiles?

2011-09-09 Thread Jean-Christophe Fillion-Robin
Reading through make documentation, seems setting -jx to MAKEFLAGS is a no-op. *The `-j' option is a special case (see section Parallel Executionhttp://theory.uwinnipeg.ca/localfiles/infofiles/make/make_47.html#SEC46). If you set it to some numeric value, `-j 1' is always put into

[CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-09-07 Thread Jean-Christophe Fillion-Robin
-- Forwarded message -- From: Peter Collingbourne pe...@pcc.me.uk Date: Wed, Sep 7, 2011 at 9:17 PM Subject: Proposal: restat rules To: ninja-bu...@googlegroups.com Hi, In this email I'll try to explain one of the oddities of make (which some CMake-based build systems rely on),

Re: [CMake] FindQt4 fails to find QtUiTools in windows cross-environment

2011-08-26 Thread Jean-Christophe Fillion-Robin
Hi Dominik, If your problem is similar to the one described here: http://na-mic.org/Mantis/view.php?id=1275 It should be fixed in CMake trunk. See http://cmake.org/gitweb?p=cmake.git;a=commit;h=702538e Hth Jc On Fri, Aug 26, 2011 at 12:54 PM, Dominik Schmidt d...@dominik-schmidt.dewrote:

Re: [CMake] CMake and NaCl (Google NativeClient)

2011-08-15 Thread Jean-Christophe Fillion-Robin
Hi Nils, Did you try to specify an empty value for the following properties: CMAKE_OSX_SYSROOT CMAKE_OSX_DEPLOYMENT_TARGET CMAKE_OSX_ARCHITECTURES ? On Thu, Aug 11, 2011 at 8:17 AM, Nils Hjelte n...@algoryx.se wrote: Hello! I'm trying to port a C++ project to NaCl

Re: [CMake] VS2010 and superbuild - Fwd: [Ctk-developers] VS2010 support

2011-08-02 Thread Jean-Christophe Fillion-Robin
or Slicer with Visual Studio 2010 in superbuild mode? If you do, could you please post if you had success or not? Thanks, Sascha On 07/22/2011 06:20 PM, Jean-Christophe Fillion-Robin wrote: Hi Folks, Before digging further into the problem ... if some your experience issue

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-07-28 Thread Jean-Christophe Fillion-Robin
Make sure http://cmake.org/gitweb?p=cmake.git;a=commit;h=702538eaa3315f3fcad9f1daea01e6a83928967bis integrated to CMake 2.8.6 Thanks Jc On Thu, Jul 28, 2011 at 8:23 PM, Steven Velez sbv1...@gmail.com wrote: http://public.kitware.com/Bug/view.php?id=12299

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-07-28 Thread Jean-Christophe Fillion-Robin
http://public.kitware.com/Bug/view.php?id=11177 On Thu, Jul 28, 2011 at 8:32 PM, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com wrote: Make sure http://cmake.org/gitweb?p=cmake.git;a=commit;h=702538eaa3315f3fcad9f1daea01e6a83928967bis integrated to CMake 2.8.6 Thanks Jc

Re: [CMake] [ryppl-dev] Re: $ expressions in include_directories command

2011-07-25 Thread Jean-Christophe Fillion-Robin
We used also a similar approach in CTK. See http://www.commontk.org/index.php/Documentation/BuildSystem_Descriptionand also [1] and [2] Relaying on small executable named DGraph built at configure time, we manage to obtain the topological order of CTK plugins, apps and libraries. The tool also

[CMake] VS2010 and superbuild - Fwd: [Ctk-developers] VS2010 support

2011-07-22 Thread Jean-Christophe Fillion-Robin
Hi Folks, Before digging further into the problem ... if some your experience issue with VS2010 and superbuild .. would be great if you could provide more details about your investigation. Thanks Jc -- Forwarded message -- From: Sascha Zelzer s.zel...@dkfz-heidelberg.de Date:

Re: [CMake] How to fetch exit status of INSTALL(CODE ...)

2011-07-20 Thread Jean-Christophe Fillion-Robin
Hi Marcel, Aware I won't be answering your question regarding the exit code associated with INSTALL(CODE ...), I still would like to suggest you an approach that could help you addressing your issue. What about byte-compiling the python source at build time ? In that case, the build step would

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

2011-07-20 Thread Jean-Christophe Fillion-Robin
Hi Marcel, Before CMAKE_PARSE_ARGUMENT [1] was integrated (11 months ago by Alex Neundorf), within CTK, we created a macro named ctkMacroParseArgument based on [2]. We will need to re-evaluate which minimum version of CMake we want to depend on and if possible, use the one provided by CMake. If

Re: [CMake] External project and patch files

2011-07-18 Thread Jean-Christophe Fillion-Robin
Hi Hugh, By design ExternalProject module will download and patch a project only one time. Indeed, the ExternalProject wouldn't be able to apply a patch more than one time. It also doesn't have a way to detect if a patch has been applied. In other word, you will have to clear the project so

Re: [CMake] Is it possible to call or include CMakeCache from another CMakeCache?

2011-07-18 Thread Jean-Christophe Fillion-Robin
Hi Kevyn-Alexandre, May be you could so something like: file(READ /path/to/Config-Generic.txt configGenericContent) file(READ /path/to/Config-Project.txt configProjectContent) file(WRITE /path/to/CMakeCache.txt ${configGenericContent}) file(APPEND /path/to/CMakeCache.txt ${configProjectContent})

Re: [CMake] CMAKE Linux Environment variable

2011-07-15 Thread Jean-Christophe Fillion-Robin
Hi Kevyn-Alexandre, Indeed, you can get or set environment variable from CMake. For example: set(ENV{PATH} /path/to/foo:$ENV{PATH}) Hth Jc On Fri, Jul 15, 2011 at 6:02 PM, Kevyn-Alexandre Paré kap...@rogue-research.com wrote: So I could simply get SVN_ROOT_PATH OE_PATH from

Re: [CMake] Issues with execute_process and svn

2011-07-13 Thread Jean-Christophe Fillion-Robin
Hi Aaron, Not sure if ti will help, but Have you looked at using ExternalProject.cmake to checkout, configure and build project using CMake ? Hth Jc On Wed, Jul 13, 2011 at 2:05 PM, David Cole david.c...@kitware.com wrote: Take the double quotes off the set commands for your args

Re: [CMake] $ expressions in include_directories command

2011-07-12 Thread Jean-Christophe Fillion-Robin
Hi Daniel, This sounds like a great feature :), do you think you could also associate a test with your changes ? Out of curiosity, why *the right set of include directories is unknown until all components have been processed* ? If it resumes not to be the case, I believe using a CMakeCache

Re: [CMake] CPack: Bundle Generator and fixup_bundle

2011-07-11 Thread Jean-Christophe Fillion-Robin
Hi Dominik, If I understood properly your problem ... You could have a look at line 40 of https://github.com/Slicer/Slicer/blob/master/SlicerCPack.cmake # HACK - For a given directory, install(SCRIPT ...) rule will be evaluated first, # let's make sure the following install rule is

Re: [CMake] Download and Build external dependencies

2011-07-01 Thread Jean-Christophe Fillion-Robin
Looking at the following file may be helpful .. SuperBuild/External_CLAPACK.cmakehttp://viewvc.slicer.org/viewvc.cgi/Slicer4/trunk/SuperBuild/External_CLAPACK.cmake?view=markup There are also other examples in the Superbuildhttp://viewvc.slicer.org/viewvc.cgi/Slicer4/trunk/SuperBuild/folder. Hth

Re: [CMake] Empty CMAKE_CFG_INTDIR

2011-06-29 Thread Jean-Christophe Fillion-Robin
Hi Paul, Hi Paul, On build system that don't handle multiple configuration (Makefile based), CMAKE_CFG_INTDIR will be . On build system handling muli-configuration (Visual Studio, XCode ..), CMAKE_CFG_ INTDIR should be either Debug, Release .. If you build using ctest, make also sure you pass

Re: [CMake] determine 32 vs 64 bit linux

2011-06-22 Thread Jean-Christophe Fillion-Robin
Hi Karl, You could do so something like that: set(bitness 32) if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(bitness 64) endif() The following macro provides a more complete example... http://viewvc.slicer.org/viewvc.cgi/Slicer4/trunk/CMake/SlicerMacroGetPlatformArchitectureBitness.cmake?view=markup #

Re: [CMake] cmd.exe does not expand wildcards

2011-06-08 Thread Jean-Christophe Fillion-Robin
Hi Mathieu, May be you could try the following ... file(GLOB log_files *.log) if(log_files) execute_process(${CMAKE_COMMAND} -E tar cvfz test.tgz ${log_files}) endif() Hth Jc On Wed, Jun 8, 2011 at 12:05 PM, Mathieu Malaterre mathieu.malate...@gmail.com wrote: Hi there, Slightly off

[CMake] Binary packages naming convention

2011-06-07 Thread Jean-Christophe Fillion-Robin
Hi Folks, I observed there are different ways of naming binary packages: myproject-Linux-i386.{ext} myproject-Linux-amd64.{ext} myproject-Linux-x86_32.{ext} myproject-Linux-x86_64.{ext} myproject-Windows-win32_x86.{ext} myproject-Windows-win64_x86.{ext}

Re: [CMake] Addition to FindGit

2011-06-05 Thread Jean-Christophe Fillion-Robin
Hi Folks, This updated version of FindGit supports both git and git-svn. See http://viewvc.slicer.org/viewvc.cgi/Slicer4/trunk/CMake/FindGit.cmake?revision=16492view=markup Hth Jc 2011/6/5 Nicolas Desprès nicolas.desp...@gmail.com Hi, That's a great idea. I'd like to contribute some

Re: [CMake] Windows build inconsistency...

2011-06-02 Thread Jean-Christophe Fillion-Robin
Just tested it on linux and the same remark applies. //- Case1: mkdir TestCase1 mkdir TestCase1/Debug echo PROJECT(foo) TestCase1/CMakeLists.txt cd TestCase1/Debug cmake ../CMakeLists.txt Output: -- The C compiler identification is GNU -- The CXX compiler

Re: [CMake] Trying to set up a superbuild with external project and install it...

2011-05-11 Thread Jean-Christophe Fillion-Robin
2011/5/11 Alexander Neundorf a.neundorf-w...@gmx.net On Wednesday 11 May 2011, Jean-Christophe Fillion-Robin wrote: Hi Alexander, Assuming the subproject are CMakeified: 1) Set the INSTALL command of each External project to an empty string ...but the INSTALL_DIR to the final

Re: [CMake] many false positives in ctest error/warning reporting

2011-05-10 Thread Jean-Christophe Fillion-Robin
Note that CTEST_USE_LAUNCHER works only with Makefile based generators. It will lead to unexpected behavior if it's enabled with Visual Studio generator. Jc On Tue, May 10, 2011 at 3:47 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: Hi Matthias, On Tuesday 10 May 2011, Matthias

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

Re: [CMake] Issue with LIST command

2011-04-26 Thread Jean-Christophe Fillion-Robin
Hi Bala, Could you provide more details regarding the error you obtained ? Within your CMakeLists.txt, may be you could add the following 'message' statements: message(WITH_MUMPS:${WITH_MUMPS}) message(c_source_files:${c_source_files}) message(mumps_srcs:${mumps_srcs}) Hth Jc On Tue, Apr 26,

[CMake] Finding dynamic libraries with major interface revision numbers (2)

2011-04-13 Thread Jean-Christophe Fillion-Robin
Hi Folks, Is there a solution to find a library having a revision number ? For example, on Ubuntu, after I installed 'libgfortran3', there is the library /usr/lib/libgfortran.so.3 then the following command failed: FIND_LIBRARY(GFortran_LIBRARY gfortran) If I create the symlink

Re: [CMake] Finding dynamic libraries with major interface revision numbers (2)

2011-04-13 Thread Jean-Christophe Fillion-Robin
On Wed, Apr 13, 2011 at 3:26 PM, Brad King brad.k...@kitware.com wrote: On 04/13/2011 02:44 PM, Jean-Christophe Fillion-Robin wrote: Is there a solution to find a library having a revision number ? You can specify the actual library file name libgfortran.so.3. Great However, you

Re: [CMake] Finding dynamic libraries with major interface revision numbers (2)

2011-04-13 Thread Jean-Christophe Fillion-Robin
library: [libm.so.6] 0x0001 (NEEDED) Shared library: [libc.so.6] On Wed, Apr 13, 2011 at 3:56 PM, Brad King brad.k...@kitware.com wrote: On 04/13/2011 03:37 PM, Jean-Christophe Fillion-Robin wrote: 1) I have a project XYZ that linked against VTK static which also linked

Re: [CMake] Finding dynamic libraries with major interface revision numbers (2)

2011-04-13 Thread Jean-Christophe Fillion-Robin
EXTRA_LIBRARIES ${GFortran_LIBRARY}) ENDIF() Thanks Jc On Wed, Apr 13, 2011 at 4:08 PM, Michael Hertling mhertl...@online.dewrote: On 04/13/2011 09:26 PM, Brad King wrote: On 04/13/2011 02:44 PM, Jean-Christophe Fillion-Robin wrote: Is there a solution to find a library having a revision

Re: [CMake] ExternalProject git update problem

2011-03-26 Thread Jean-Christophe Fillion-Robin
Hi Sasha, Out of curiosity, what's the value of PROJ_GIT_BRANCH ? Did you specify REMOTE_NAME/BRANCH_NAME. For example: master/origin Jc On Sat, Mar 26, 2011 at 11:54 AM, Sascha Zelzer s.zel...@dkfz-heidelberg.de wrote: Hi, we are using the ExternalProject module from CMake 2.8.4 and are

Re: [CMake] Building a DLL and test driver EXE using CMake -- error by design?

2011-03-22 Thread Jean-Christophe Fillion-Robin
Hi Chris, Try to change the order of the ADD_DUBDIRECTORY. add_subdirectory(FeatureViewer) add_subdirectory(TestDriver) instead of add_subdirectory(TestDriver) add_subdirectory(FeatureViewer) As mentioned in the

Re: [CMake] how to place all executables in /build/bin directory

2011-03-22 Thread Jean-Christophe Fillion-Robin
Hi Arvind, As documented herehttp://www.cmake.org/cmake/help/cmake2.6docs.html#variable:CMAKE_RUNTIME_OUTPUT_DIRECTORY, set the variable CMAKE_RUNTIME_OUTPUT_DIRECTORY instead. Usually I set this one just after I invoke PROJECT() command. Indeed, as specified

Re: [CMake] Building a DLL and test driver EXE using CMake -- error by design?

2011-03-22 Thread Jean-Christophe Fillion-Robin
has ever experienced this problem before. It seems like a very natural thing to want to do. Thanks for the quick response. -Chris *From:* Jean-Christophe Fillion-Robin [mailto:jchris.filli...@kitware.com] *Sent:* Tuesday, March 22, 2011 2:41 PM *To:* Chris Volpe ARA/SED *Cc:* cmake

Re: [CMake] Ninja: a small build system closest in spirit to Make

2011-02-14 Thread Jean-Christophe Fillion-Robin
are welcome :) Thanks Jc On Sun, Feb 13, 2011 at 12:19 PM, Caner Candan ca...@candan.fr wrote: You are followed :) great job! On Sat, Feb 12, 2011 at 2:15 PM, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com wrote: I forked the original ninja project on my github and cmake'ified

Re: [CMake] Ninja: a small build system closest in spirit to Make

2011-02-12 Thread Jean-Christophe Fillion-Robin
I forked the original ninja project on my github and cmake'ified it. It successfully compile on linux [ubuntu 10.04, g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3] Note that both In and Out-of-source built are handled properly. See https://github.com/jcfr/ninja topic branch:

Re: [CMake] Help on ExternalProject_Add

2011-02-09 Thread Jean-Christophe Fillion-Robin
on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Direct: 1-518-836-2174 Ext: 304 # # BuildHelper script # Author: Jean-Christophe Fillion-Robin jchris.filli...@kitware.com

Re: [CMake] How to use VTK as an ExternalProject

2011-02-07 Thread Jean-Christophe Fillion-Robin
Hi Nicolas, To properly use the superbuild feature, you could structure your project as described below: PROJ-SRC/CMakeLists.txt PROJ-SRC/Superbuild.cmake PROJ-SRC/CMakeExternals/External-VTK.cmake Within CMakeLists.txt, by default the variable USE_SUPERBUILD will be ON. If this variable is ON,

Re: [CMake] ExternalProject module in 2.8.2 completely broken with respect to GIT?

2010-10-28 Thread Jean-Christophe Fillion-Robin
Hi Kent, The version of FindGit.cmake and ExternalProject.cmake provided with cmake 2.8.2 uses GIT_EXECUTABLE. Within ExternalProject.cmake: - The lower case version of the variable is used as a parameter to function. For example, function _ep_write_gitclone_script line 212. - The upper

[CMake] How to test classes requiring a server ?

2010-09-14 Thread Jean-Christophe Fillion-Robin
Hi Folks, Would be great if some people having experience in testing classes required a server could share their knowhow :) Within our project, we have a set of classes that required an instance of a server running to be properly unit tested. Note that the server can be started easily from a

[CMake] How to obtain date of the day

2010-08-05 Thread Jean-Christophe Fillion-Robin
hi Folks, Earlier in the day, somebody asked me how he could obtain today date using cmake. I replied there was no direct way to obtain the date and I told him to use a macro I wrote. See http://viewvc.slicer.org/viewcvs.cgi/trunk/CMake/Slicer3TodayMacro.cmake?rev=11898view=log Is there a better

<    1   2