Re: [CMake] CopyOfCMakeCache.txt

2018-10-18 Thread Jean-Christophe Fillion-Robin
Hi Frank, Out of curiosity, did you explicitly pass CMAKE_SYSTEM_NAME variable when configuring your project ? Jc On Wed, Oct 17, 2018 at 6:38 PM Frank Tocci wrote: > Hello, > > I was using the CMake GUI when I came across the following message: > > System is unknown to cmake, create: >

Re: [CMake] Qt 5, macOS, bundle install

2018-10-14 Thread Jean-Christophe Fillion-Robin
Hi Romain, > How can I add this simple example inside the CMake example/tutorial? I suggest to add them to the cmake community wiki. See https://gitlab.kitware.com/cmake/community/wikis/home Jc On Tue, Oct 9, 2018 at 11:27 AM Romain LEGUAY wrote: > I found the solution!! > > I just add the

Re: [CMake] ExternalProject, BundleUtilities, CPack, and RPath management

2018-10-14 Thread Jean-Christophe Fillion-Robin
Hi Clifford, You could have a look at the Slicer build system, see https://github.com/Slicer/Slicer. It is based on ExternalProject. * It makes use of CPACK_INSTALL_CMAKE_PROJECTS * It uses

[CMake] [ANNOUNCE] CMake 3.9.0 Python wheels available for download

2017-08-01 Thread Jean-Christophe Fillion-Robin
I am proud to announce that CMake 3.9.0 python wheels are now available for download using: pip install -U cmake See https://blog.kitware.com/cmake-python-wheels/ and https://pypi.python.org/pypi/cmake Documentation is available at: https://cmake.org/cmake/help/v3.9 Release notes are

Re: [cmake-developers] Debugger for CMake

2017-02-02 Thread Jean-Christophe Fillion-Robin
Hi Justin, Adam et al, made a proof of concept for a debugger integrated into CMake Very nice to see someone moving this forward :+1 > Wish this existed since forever. FWIW, you may want to also look at what was done by Matt here: https://github.com/thewtex/cmakedbg Hth Jc -- +1 919

Re: [CMake] Forcing linking compatability to old libc / libstdc++ (Linux)

2017-02-02 Thread Jean-Christophe Fillion-Robin
Hi Gonzalo, Using the dockcross/manylinux-x64 docker image should allow to build you project out-of-the-box. It is based on Centos5, include recent gcc, CMake, Git, etc ... See https://github.com/dockcross/dockcross In a nutshell, # Pull image docker pull dockcross/manylinux-x64 # Generate

[Cmake-commits] CMake branch, next, updated. v3.6.0-rc2-475-g4835cb4

2016-06-20 Thread Jean-Christophe Fillion-Robin
ow. - Log - https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4835cb445ad64ee3ae9cc39dd87522446ff20e54 commit 4835cb445ad64ee3ae9cc39dd87522446ff20e54 Merge: 8773905 6509ad2 Author: Jean-Christophe Fillion-Robin <jchris.filli...@kitware.com> AuthorDate: Mon Jun 20 18:

[Cmake-commits] CMake branch, next, updated. v3.5.2-961-g4b8de2f

2016-04-15 Thread Jean-Christophe Fillion-Robin
ow. - Log - https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4b8de2f05805aefa3dbbc22b1da4ddba1f7200ca commit 4b8de2f05805aefa3dbbc22b1da4ddba1f7200ca Merge: f5edf51 5ae0d33 Author: Jean-Christophe Fillion-Robin <jchris.filli...@kitware.com> AuthorDate: Fri Apr 15 14:

[Cmake-commits] CMake branch, next, updated. v3.5.1-957-gac248c6

2016-04-15 Thread Jean-Christophe Fillion-Robin
ow. - Log - https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ac248c6f775c7f85cafb438480253541c1143d39 commit ac248c6f775c7f85cafb438480253541c1143d39 Merge: ca24bb4 66fb6be Author: Jean-Christophe Fillion-Robin <jchris.filli...@kitware.com> AuthorDate: Fri Apr 15 12:

[Cmake-commits] CMake branch, next, updated. v3.5.1-955-gca24bb4

2016-04-15 Thread Jean-Christophe Fillion-Robin
ns in full, below. - Log - https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ca24bb4eff3c972fdb38ef8958264a987b592284 commit ca24bb4eff3c972fdb38ef8958264a987b592284 Merge: 46007cb 78077d7 Author: Jean-Christophe Fillion-Robin <

[Cmake-commits] CMake branch, next, updated. v3.5.1-743-g9301b39

2016-03-31 Thread Jean-Christophe Fillion-Robin
9d14b40306 commit 9301b3955a35f6e49eab20ff90b6a09d14b40306 Merge: b7c930d fad5d59 Author: Jean-Christophe Fillion-Robin <jchris.filli...@kitware.com> AuthorDate: Thu Mar 31 13:19:33 2016 -0400 Commit: CMake Topic Stage <kwro...@kitware.com> CommitDate: Thu Mar 31 13:19:33 2016 -0400

Re: [cmake-developers] Git for windows patch

2016-01-15 Thread Jean-Christophe Fillion-Robin
Hi, > The existence of \bin is there only for backward -compatibility I guess we could also add "Git/usr/bin" to the suffixes so that it prefer newer version first ? PATH_SUFFIXES Git/usr/bin Git/cmd Git/bin Hth Jc On Fri, Jan 15, 2016 at 11:24 AM, Paul Smith wrote:

Re: [cmake-developers] [Development] [ANNOUNCE] DaD's House! (Beta)

2015-09-10 Thread Jean-Christophe Fillion-Robin
Hi Konstantin, Thanks for sharing your work with the community. Given the exhaustive list of modules provided within the installers, I can appreciate the effort. That said, as you may know, downloading unsigned binaries to build applications is not an option for a lot of us. Here are few

Re: [CMake] problems in building opencv (zlib.h: No such file or directory)

2015-05-08 Thread Jean-Christophe Fillion-Robin
Hi Saverio, Make sure you install zlib dev package. That way the header will be found on the system. On Ubuntu 14.04, you could do it using the following command: $ sudo apt-get install zlib1g-dev See http://packages.ubuntu.com/trusty/zlib1g-dev Hth Jc On Wed, May 6, 2015 at 1:44 PM, Saverio

Re: [CMake] Set Fortran compiler in CMakeLists.txt?

2015-04-30 Thread Jean-Christophe Fillion-Robin
Hi Nikolaus, May you could ask your user to invoke cmake with the -C argument allowing to specify an initial cache file with value specific to the environment ? It would for example contain: set(FC ifort CACHE PATH Intel Fortran compiler) See

Re: [CMake] Consuming results of ExternalProject_Add

2015-02-17 Thread Jean-Christophe Fillion-Robin
Hi Andrey, On Tue, Feb 17, 2015 at 5:52 PM, Andrey Pokrovskiy wonder.m...@gmail.com wrote: I don't see how External_OpenSSL.cmake is used in Slicer (probably some weird scheme is involved). We used Artichoke that provides a set of convenience function to managed superbuild based project.

Re: [CMake] Consuming results of ExternalProject_Add

2015-02-17 Thread Jean-Christophe Fillion-Robin
Hi Andrey, Since there is already a FindOpenSSL.cmake module [1], configuring the consumer project with the variable expected by the FindOpenSSL.cmake module is the easiest. See

Re: [CMake] Using CMake to build an Emscripten output?

2014-11-07 Thread Jean-Christophe Fillion-Robin
Hi Eric, While I don't have yet an example dealing with assets, here is an example of project using emscripten. See https://github.com/commontk/dcmjs May be you could re-use the macro em_add_tracked_link_flag like it is done for --pre-js, etc See [1] Hth Jc [1]

Re: [CMake] Support OpenBLAS in FindBLAS module

2014-11-07 Thread Jean-Christophe Fillion-Robin
Hi Xianyi, By updating FindBlas.cmake, did you mean that the module should try to find OpenBlas if it could not find any other implementation ? Or do you want to provide an easy for developer to import the OpenBlas library in their project ? Either way, as described by Eike, the first step would

Re: [CMake] ExternalProjectDependency (artichoke) and ctest

2014-11-07 Thread Jean-Christophe Fillion-Robin
Hi Jameson, Good to know you are using Artichoke. As you described Artichoke provides ExternalProjectDependency, a CMake module extending the capabilities of ExternalProject. It could eventually by integrated into CMake once the API is stable, the documentation is complete it is more widely

Re: [CMake] Collecting libraries for NSIS installer

2014-08-25 Thread Jean-Christophe Fillion-Robin
Hi Richard, Generator expression won't work in install rules. Instead, I suggest you simply use install(TARGET ...) for regular targets. Hth Jc On Mon, Aug 25, 2014 at 5:02 PM, Richard Shaw hobbes1...@gmail.com wrote: Ok, apparently I'm the only person that can't figure out how generator

Re: [CMake] What are the best practices for project installation hierarchy?

2014-06-26 Thread Jean-Christophe Fillion-Robin
Hi Egor, DESTINATION should be specified as relative path. I would also recommend to use COMPONENTS. Finally, to know how to organize your files in the install package, I would suggest you look at the Filesystem Hierarchy Standard. See http://www.pathname.com/fhs/pub/fhs-2.3.html For example,

Re: [CMake] Hyperlink to build URL

2014-06-19 Thread Jean-Christophe Fillion-Robin
Hi Jeff, If you upload a file having extension .url containing the url, it will be associated with your build by presenting a package icon allowing to then open the corresponding link. For more details, see section File upload in this article [1] For an example see [2] Hth Jc [1]

Re: [CMake] Question regarding External Project add and VTK

2014-06-19 Thread Jean-Christophe Fillion-Robin
Hi Jameson, There is indeed a recipe, assuming you are using ExternalProjectDependency.cmake from Artichoke [1], if you pass the variable to your project using ${CMAKE_CFG_INTDIR} it will be automatically passed as CMAKE_ARGS (instead of CMAKE_CACHE_ARGS) to external project and it will be

Re: [CMake] Confusion regarding usage of find_package and PATHS or HINTS

2014-06-19 Thread Jean-Christophe Fillion-Robin
Hi Jameson, If your are superbuild-ing the associated project, you can simply configure the project depending on these library by explicitly setting the expected variable. That will be deterministic and you won't rely on a search and find behavior. Hth Jc On Tue, Jun 10, 2014 at 2:28 PM,

Re: [CMake] Mac @loader_path for @rpath questions

2014-06-19 Thread Jean-Christophe Fillion-Robin
Hi Folks, I have a version of Fixup bundle that support @rpath. See [1] Test need to be added before it can integrated. It is currently used to package 3DSlicer on a daily basis. See [2] and [3]. To have a look at the package, Slicer can be downloaded on http://download.slicer.org Note that it

Re: [CMake] CPack packaging portable binaries with external shared libraries

2014-06-19 Thread Jean-Christophe Fillion-Robin
Hi, In case, you think about having more than on executable in different folder or if you will have plugins, I wouldn't recommend using @executable_path instead @loader_path is the way to go. This is discussed here :

Re: [CMake] CMake 3.0, Qt5.3 and Policy CMP0043.

2014-06-10 Thread Jean-Christophe Fillion-Robin
Thanks Matt. I just +1 the issue. Jc On Tue, Jun 10, 2014 at 7:39 PM, matt.bol...@csiro.au wrote: I raised an issue in the Qt bug tracker for this https://bugreports.qt-project.org/browse/QTBUG-39457 - everyone should go vote for it J Matt *From:* CMake

Re: [CMake] Question regarding External Project add and VTK

2014-06-09 Thread Jean-Christophe Fillion-Robin
Hi Jameson, Glad to know you sorted out the issue. By any chance, do you think you could share a link to a github repository with your project ? That would allow us to review how you integrated ExternalProjectDependency and improve it. Thanks Jc On Sun, Jun 8, 2014 at 9:39 PM, jmerkow

Re: [CMake] Question regarding External Project add and VTK

2014-06-03 Thread Jean-Christophe Fillion-Robin
Hi Jameson, That is indeed the idea. To clarify even further, 1) the call to ExternalProject_Include_Dependencies [1] should be added before ExternalProject_Add. It will recursively include the needed dependencies. 2) By simply adding an additional parameter: by default

Re: [CMake] Question regarding External Project add and VTK

2014-06-02 Thread Jean-Christophe Fillion-Robin
Hi Jameson, To specifically address the issue you described, I started to develop an (experimental) module extending ExternalProject and providing some convenience function. Documentation is far from being perfect but looking at (1) the tests:

Re: [CMake] What do Visual Studio users do so they can run/debug their programs when using 3rd party .dlls?

2014-05-25 Thread Jean-Christophe Fillion-Robin
Hi Eric, This can be solved using a launcher. When adding tests, you could use the following syntax: add_test( NAME NameOfTest COMMAND ${TheProject_LAUNCH_COMMAND} $TARGET_FILE:NameOfTarget --arg1 ... ) where TheProject_LAUNCH_COMMAND is a variable pointing to a

Re: [CMake] Using Qt5 with CMake

2014-03-11 Thread Jean-Christophe Fillion-Robin
Hi Alan, To get a better idea of the required change to support Qt5, you could look at what we did for VTK. See https://github.com/Kitware/VTK/commit/384636ec9f4 Hth Jc On Tue, Mar 11, 2014 at 4:59 PM, Alan W. Irwin ir...@beluga.phys.uvic.cawrote: On 2014-01-26 17:36+0100 Stephen Kelly

Re: [cmake-developers] Exported targets with imported dependencies in CMake 3.0

2014-03-06 Thread Jean-Christophe Fillion-Robin
.. and whenever possible the FindXXX.cmake should defined imported targets. Jc On Thu, Mar 6, 2014 at 9:38 AM, Philipp Möller bootsare...@gmail.comwrote: Stephen Kelly steve...@gmail.com writes: Philipp Möller wrote: It would be great, if I could export imported targets and if CMake

Re: [CMake] QT4_CREATE_TRANSLATION delete source ts files during clean

2014-02-26 Thread Jean-Christophe Fillion-Robin
Hi Anatoly, Within Slicer [1], we addressed the creation / updates of the translation files by introducing a variable named Slicer_UPDATE_TRANSLATION [2] Then, within a macro named 'SlicerMacroTranslation.cmake' [3], depending on the value of Slicer_UPDATE_TRANSLATION, we either call (1)

Re: [cmake-developers] New EVIS parser moving forward (3.1)

2014-02-21 Thread Jean-Christophe Fillion-Robin
On Fri, Feb 21, 2014 at 12:05 PM, Ben Boeckel ben.boec...@kitware.comwrote: On Fri, Feb 21, 2014 at 08:38:35 +0100, Rolf Eike Beer wrote: Are there any other corner cases I should consider banning as well? What about behavior that should be allowed that currently isn't? If this patch

Re: [cmake-developers] Reduce output of install step

2014-02-17 Thread Jean-Christophe Fillion-Robin
Hi Folks, Removing extra outputs is good. Would it make sense for Kevin to push a topic to next ? Should a policy be added to avoid breaking system that relied on the stdout ? Jc On Mon, Feb 17, 2014 at 9:51 AM, Kevin Burge kcbu...@gmail.com wrote: At Brad King's request, I am posting this

Re: [CMake] Path vs. name preference during search.

2014-02-13 Thread Jean-Christophe Fillion-Robin
Hi Rob, Do address the use case you described, I usually explicitly set the path the library when built as an external project and rely only on the find_* command for the use_system case. See

Re: [cmake-developers] Adding Release Notes

2014-02-07 Thread Jean-Christophe Fillion-Robin
Very nice. On Fri, Feb 7, 2014 at 1:42 PM, Brad King brad.k...@kitware.com wrote: On 02/04/2014 12:06 PM, Brad King wrote: I'm working on the notes for 3.0.0 by hand I've added release notes for 3.0: Help: Add CMake 3.0 Release Notes

Re: [cmake-developers] add_custom_command differences in tests

2014-02-07 Thread Jean-Christophe Fillion-Robin
Agreed. Is there an issue in the tracker to document that problem ? On Fri, Feb 7, 2014 at 3:05 PM, Steve Wilson ste...@wolfram.com wrote: On Feb 7, 2014, at 10:14 AM, Steve Wilson ste...@wolfram.com wrote: On Feb 6, 2014, at 10:12 PM, Ben Boeckel ben.boec...@kitware.com wrote: On Thu,

Re: [cmake-developers] [CMake] Reverse logic

2014-01-29 Thread Jean-Christophe Fillion-Robin
On Wed, Jan 29, 2014 at 4:23 PM, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com wrote: Hi Rob, What about: if( NOT USE_SYSTEM_FOO) # Build my own FOO endif() Hth Jc -- +1 919 869 8849 -- Powered by www.kitware.com Visit other Kitware open-source projects at http

Re: [cmake-developers] RFC: add version to project() call

2014-01-28 Thread Jean-Christophe Fillion-Robin
I would vote for (2), that way people using the latest and greatest of CMake won't have to enable any variable and it will work out of the box. Jc On Tue, Jan 28, 2014 at 9:10 AM, Brad King brad.k...@kitware.com wrote: On 01/23/2014 04:08 PM, Alexander Neundorf wrote: Any more comments left

Re: [cmake-developers] Review Request for ExternalProjects: Only update certain git submodules

2014-01-15 Thread Jean-Christophe Fillion-Robin
Hi Folks, That would be a great contribution. I will give a try to the patch by the beginning of next week. This is something that would be useful for CTK [1]. Thanks for working on this, Jc [1] http://www.commontk.org On Wed, Jan 15, 2014 at 10:03 AM, Brad King brad.k...@kitware.com wrote:

[cmake-developers] Change default standard library implementation before used by compiler ?

2014-01-14 Thread Jean-Christophe Fillion-Robin
Hi Folks, For both Slicer and SimpleITK, there is currently no support for the clang c++ standard library new implementation [1] that is now used by default on Maverick. It means that we currently expect our users to build the project by passing the flag:

Re: [cmake-developers] RFC: add version to project() call

2014-01-10 Thread Jean-Christophe Fillion-Robin
Would it make sense to have project(Foo VERSION 1.2.3) set the variables: ${PROJECT_NAME}_PROJECT_VERSION_(MAJOR|MINOR|PATCH|TWEAK) That way, the variable would remain even if project is called with VERSION in sub directory. Jc On Fri, Jan 10, 2014 at 9:49 AM, Brad King

Re: [cmake-developers] RFC: add version to project() call

2014-01-10 Thread Jean-Christophe Fillion-Robin
Great. Having both: PROJECT_VERSION_(MAJOR|MINOR|PATCH|TWEAK) ${PROJECT_NAME}_PROJECT_VERSION_(MAJOR|MINOR|PATCH|TWEAK) is the way to to go. On Fri, Jan 10, 2014 at 11:41 AM, Matthew Woehlke mw_tr...@users.sourceforge.net wrote: On 2014-01-10 11:01, Jean-Christophe Fillion-Robin wrote

Re: [cmake-developers] Minor regression in --version results for CMake 2.8.12.1 (A FALSE ALARM)

2013-12-06 Thread Jean-Christophe Fillion-Robin
Hi Marcel, You could use the -p option. For example: $ type -p ld /usr/bin/ld Hth Jc On Fri, Dec 6, 2013 at 3:28 AM, Marcel Loose lo...@astron.nl wrote: On 05/12/13 18:27, Matthew Woehlke wrote: On 2013-12-05 02:36, Alan W. Irwin wrote: Sorry, this turned out to be a false alarm.

Re: [cmake-developers] CMakeParseArguments: Do not skip empty arguments

2013-11-27 Thread Jean-Christophe Fillion-Robin
Hi Danielle, We use the macro a lot in project like Slicer and CTK. This is a great improvement of the CMakeParseArguments module. Thanks for working on this. Jc On Wed, Nov 27, 2013 at 10:40 AM, Brad King brad.k...@kitware.com wrote: On 11/27/2013 9:54 AM, Daniele E. Domenichelli wrote:

Re: [cmake-developers] Review Request: Topic ExternalProject_GitUpdate

2013-11-25 Thread Jean-Christophe Fillion-Robin
if(is_remote_ref) ... Hth Jc On Fri, Nov 22, 2013 at 1:06 PM, Brad King brad.k...@kitware.com wrote: Jc, Matt, On 11/18/2013 10:10 AM, Jean-Christophe Fillion-Robin wrote: Will give a try and let you know how it goes. [snip] On 11/18/2013 12:40 PM, Matt McCormick wrote: I have checkout out

Re: [cmake-developers] Review Request: Topic ExternalProject_GitUpdate

2013-11-18 Thread Jean-Christophe Fillion-Robin
Hi Daniele, This is a great improvement. It is so easy to loose local change to an external project A made while debugging/tweaking it for a better interaction into an other project B with B depending on A. Will give a try and let you know how it goes. Thanks Jc On Mon, Nov 18, 2013 at 6:19

Re: [CMake] INSTALL CODE Error Results and Termination

2013-11-13 Thread Jean-Christophe Fillion-Robin
Hi David, You could look at the generated file named cmake_install.cmake to have a better idea of what could be wrong ... As a side note, there is also an issue with command like install(CODE|SCRIPT ... there are always executed first in a given directory. See [1] (Note that I couldn't find a

Re: [CMake] INSTALL CODE Error Results and Termination

2013-11-13 Thread Jean-Christophe Fillion-Robin
Hi David, You need to escape the $ sign otherwise the _err, _out and _res variables are resolved to an empty string. Here is an example of what you could do: -8---8-- cmake_minimum_required(VERSION 2.8.9) install(CODE execute_process ( COMMAND ${CMAKE_COMMAND}

Re: [CMake] INSTALL CODE Error Results and Termination

2013-11-13 Thread Jean-Christophe Fillion-Robin
...@kitware.com], Jean-Christophe Fillion-Robin wrote: Hi David, You need to escape the $ sign otherwise the _err, _out and _res variables are resolved to an empty string. Here is an example of what you could do: -8---8-- cmake_minimum_required(VERSION 2.8.9

Re: [CMake] can non cmake projects be added by externalproject_add?

2013-11-12 Thread Jean-Christophe Fillion-Robin
And also: https://github.com/Slicer/Slicer/tree/master/SuperBuild Hth Jc On Tue, Nov 12, 2013 at 12:04 PM, Pau Garcia i Quiles pgqui...@elpauer.orgwrote: Hello, Of course you can. Take a look at winstng for instance, which builds a lot of non-CMake projects with ExternalProject:

Re: [cmake-developers] [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-06 Thread Jean-Christophe Fillion-Robin
+1 I like the idea of the [Apply Command Line Parameters button appear whenever -Dvar=value parameters were passed.] Would also be nice if parameter like -G ... could also be considered for the first configuration. Within some of our project, I envision user downloading a bat script named

Re: [CMake] [cmake-developers] Forwarding parameters to cmake through cmake-gui

2013-11-06 Thread Jean-Christophe Fillion-Robin
+1 I like the idea of the [Apply Command Line Parameters button appear whenever -Dvar=value parameters were passed.] Would also be nice if parameter like -G ... could also be considered for the first configuration. Within some of our project, I envision user downloading a bat script named

Re: [cmake-developers] [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-04 Thread Jean-Christophe Fillion-Robin
Would it makes sense to have cmake-gui behaving like ccmake ? After all there are both UI. It would accept the same set of options: -C initial-cache = Pre-load a script to populate the cache. -D var:type=value = Create a cmake cache entry. -U globbing_expr = Remove

Re: [CMake] [cmake-developers] Forwarding parameters to cmake through cmake-gui

2013-11-04 Thread Jean-Christophe Fillion-Robin
Would it makes sense to have cmake-gui behaving like ccmake ? After all there are both UI. It would accept the same set of options: -C initial-cache = Pre-load a script to populate the cache. -D var:type=value = Create a cmake cache entry. -U globbing_expr = Remove

Re: [cmake-developers] Continuous CMake documentation of 'next' and 'master'

2013-11-01 Thread Jean-Christophe Fillion-Robin
That is awesome ! :) On Fri, Nov 1, 2013 at 11:37 AM, Brad King brad.k...@kitware.com wrote: Hi Folks, We now publish CMake documentation built from 'next': http://www.cmake.org/cmake/help/git-next/ and from 'master': http://www.cmake.org/cmake/help/git-master/ updated every 10

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread Jean-Christophe Fillion-Robin
Hi Physhh, I like the idea. Instead, a gui panel (with tooltips, doc, ...) should be autogenerated from the option associated to the corresponding cmake executable. Would be happy to review changes / patches. Thanks Jc On Fri, Nov 1, 2013 at 10:47 AM, physhh . phy...@gmail.com wrote: I've

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread Jean-Christophe Fillion-Robin
understood your feedback correctly. You mean it would be nice to add a panel to the gui which lists all forwarded options with description text? Will try to create a patch for this. Thanks for your time On Fri, Nov 1, 2013 at 3:52 PM, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com

Re: [CMake] Best way to copy Python test file to binary directory?

2013-10-29 Thread Jean-Christophe Fillion-Robin
Hi James, Within CTK we implemented a macro allowing to easily copy and compile files to the binary directory. See https://github.com/commontk/CTK/blob/master/CMake/ctkMacroCompilePythonScript.cmake Hth Jc On Tue, Oct 29, 2013 at 4:50 PM, James Amundson amund...@fnal.gov wrote: Hi, I have

Re: [CMake] Adding unused files to the generated project

2013-09-22 Thread Jean-Christophe Fillion-Robin
Hi Lucas, You could use the source_group command. See http://www.cmake.org/cmake/help/v2.8.11/cmake.html#command:source_group For example of usage, see [1] Hth Jc [1] https://github.com/commontk/CTK/blob/dcf7db15f2b43507395316dd680dba5999f886b4/CMake/ctkMacroBuildLib.cmake#L117-127 On Sun,

Re: [CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-17 Thread Jean-Christophe Fillion-Robin
Hi David, I should have specify the context ... ..for example, in the case you change the SHA1 associated with your external project. If update is disabled, doing a full rebuild will take longer than simply doing an update + incremental build. Especially if other projects depend on the fully

Re: [CMake] ExternalProject_Add + BundleUtilities

2013-06-18 Thread Jean-Christophe Fillion-Robin
Hi Andrew, I guess sharing an example of code would probably help people having the expertise to reproduce the issue and eventually answer. Jc On Tue, Jun 18, 2013 at 10:50 AM, Andrew Hundt athu...@gmail.com wrote: Is this the right list to ask this question? Cheers! Andrew Hundt On

Re: [CMake] Update for How to create a ProjectConfig.cmake file?

2013-06-14 Thread Jean-Christophe Fillion-Robin
Hi, Would be great is somebody could help and update the wiki page. Here are some pointers: http://cmake.3232098.n2.nabble.com/CMakeModules-repository-at-GitHub-tp7583818p7583832.html http://www.cmake.org/pipermail/cmake/2013-February/053689.html Hth Jc On Thu, Jun 13, 2013 at 10:45 AM,

Re: [cmake-developers] Testing Groups

2013-06-10 Thread Jean-Christophe Fillion-Robin
Hi Andreas, Sounds like a very interesting idea. Instead of introducing the GROUP parameter in the add_test command, may be the LABEL could be re-used ? Would also be nice to consider the concept of resource locking while thinking about this. [1] Jc [1]

Re: [CMake] Wiki: version compatibility matrix

2013-06-10 Thread Jean-Christophe Fillion-Robin
The matrix is very useful. Thanks for working on this :) Jc On Mon, Jun 10, 2013 at 5:46 AM, Johannes Zarl johannes.z...@jku.at wrote: Hi, Am 23.05.2013, 19:38:26 schrieb Alexander Neundorf: the matrix is getting a bit out of date, the last update is for 2.8.8. Can you try to create an

Re: [cmake-developers] compile_options command

2013-06-03 Thread Jean-Christophe Fillion-Robin
+1 That would be a great features. Jc -- Sent from my mobile device On Jun 3, 2013 1:12 PM, Brad King brad.k...@kitware.com wrote: On 06/03/2013 12:38 PM, Stephen Kelly wrote: add_compile_options(-Wundef) IMO this name is good because it looks like a generalized version of add_definitions

Re: [cmake-developers] Safe source list GLOBs

2013-05-30 Thread Jean-Christophe Fillion-Robin
Hi Folks, Being able to activate the dynamic globing on a per-directory or per-target or per-glob call basis would be nice. Coupled with automoc feature of Qt, that would simplify things greatly. I would be happy to test patches on our large scale project 3DSlicer. See

Re: [CMake] Checkout specific revision from svn with ExternalProject_Add

2013-05-21 Thread Jean-Christophe Fillion-Robin
Hi Jens, You could specify the revision using: SVN_REVISION -r 17027 For example: https://github.com/Slicer/Slicer/blob/f3b155fdf266134c274c97773710f4d4e7514858/SuperBuild/External_EMSegment.cmake#L25 Hth Jc On Tue, May 21, 2013 at 11:08 AM, Jens Auer je...@miltenyibiotec.de wrote: Hi,

Re: [cmake-developers] [CMake] BundleUtilities and @rpath

2013-05-16 Thread Jean-Christophe Fillion-Robin
/tweak-bundleutilities-for-rpath Thanks Jc On Thu, May 2, 2013 at 11:51 AM, Clinton Stimpson clin...@elemtech.comwrote: On Wednesday, April 24, 2013 06:45:11 PM Jean-Christophe Fillion-Robin wrote: Hi Folks, I have been working on improving BundleUtilities and GetPrerequisites module so

Re: [CMake] Creating a common (= across several projects) CMake module/include-file/library

2013-05-13 Thread Jean-Christophe Fillion-Robin
Hi, To download the common file(s) at configure time, you could follow the approach discussed here: http://cmake.3232098.n2.nabble.com/is-it-possible-to-download-CMake-modules-at-configure-time-td7583968.html#a7584113 Hth Jc On Mon, May 13, 2013 at 6:17 PM, Matthew Woehlke

Re: [cmake-developers] Code Changes to support C++ Windows Forms

2013-04-29 Thread Jean-Christophe Fillion-Robin
to do so if someone pointed me in the right direction. - John On 2013-04-28 20:46, Jean-Christophe Fillion-Robin wrote: Hi John, Seems you forgot to send a link to the associated topic. Jc On Sun, Apr 28, 2013 at 10:20 PM, john.farrier@**helleboreconsulting.comjohn.farr

Re: [CMake] portable way of linking (external) libs statically/dynamically/for dlopen

2013-04-29 Thread Jean-Christophe Fillion-Robin
For example: https://github.com/commontk/CTK/blob/ac13c32312c9160190b80bd3a03d012782eff40c/Libs/Core/CMake/ctkMacroBFDCheck.cmake#L33-43 Hth Jc On Mon, Apr 29, 2013 at 4:36 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Monday 29 April 2013, Philippe Cerfon wrote: Hi. I've

Re: [cmake-developers] Code Changes to support C++ Windows Forms

2013-04-28 Thread Jean-Christophe Fillion-Robin
Hi John, Seems you forgot to send a link to the associated topic. Jc On Sun, Apr 28, 2013 at 10:20 PM, john.farr...@helleboreconsulting.comwrote: Hello all! New CMake developer here! I have modified the latest version of CMake from Git to be able to use .resx files and integrate them

Re: [CMake] Can't get CTEST_CUSTOM_ERROR_MATCH to work with CTest launchers

2013-04-25 Thread Jean-Christophe Fillion-Robin
Hi Nils, Since CTEST_USE_LAUNCHERS is ignored when used with generator different from Make or Ninja [1], it seems strange that it impacts your windows build. Which generator are you using ? Hth Jc [1] https://github.com/Kitware/CMake/blob/master/Modules/CTestUseLaunchers.cmake#L38-40 On Thu,

Re: [CMake] Can't get CTEST_CUSTOM_ERROR_MATCH to work with CTest launchers

2013-04-25 Thread Jean-Christophe Fillion-Robin
currently use CMake 2.8.11-rc3 with the Ninja generator on windows. Nils On 25.04.2013 17:30, Jean-Christophe Fillion-Robin wrote: Hi Nils, Since CTEST_USE_LAUNCHERS is ignored when used with generator different from Make or Ninja [1], it seems strange that it impacts your windows

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread Jean-Christophe Fillion-Robin
Hi, What about adding: find_package(ITK REQUIRED) If you use ITKv4, you could change: TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters) into TARGET_LINK_LIBRARIES(test ${ITK_LIBRARIES}) As a best practice, you could use lower case for the CMake function and command. Hth Jc On

Re: [CMake] cmake script profiler

2013-04-24 Thread Jean-Christophe Fillion-Robin
Hi Volo, If you are doing some topological sorting to build your library/executable in the right order. Instead of using CMake based solution, you could may be rely on a C++ approach ? This is what we are doing in CTK. We are using a small prog named ctkDependencyGraph that we build at configure

Re: [CMake] cmake script profiler

2013-04-24 Thread Jean-Christophe Fillion-Robin
-Christophe Fillion-Robin jchris.filli...@kitware.com wrote: Hi Volo, If you are doing some topological sorting to build your library/executable in the right order. Instead of using CMake based solution, you could may be rely on a C++ approach ? This is what we are doing in CTK. We

[CMake] BundleUtilities and @rpath

2013-04-24 Thread Jean-Christophe Fillion-Robin
Hi Folks, I have been working on improving BundleUtilities and GetPrerequisites module so that it can be used to easily fixup a MacOSX bundle using @rpath. The set of changes I would like to propose is here:

Re: [CMake] cmake script profiler

2013-04-23 Thread Jean-Christophe Fillion-Robin
Hi Bill, Would it be possible to share the topic implementing your profiling code ? By default, summing the time spent in each functions makes sens. That said, it would also be nice to have the option of having detailed trace info, coupled with convenient code like message(START_PROFILING) and

Re: [CMake] Sharing sources between two targets

2013-04-22 Thread Jean-Christophe Fillion-Robin
Hi Nick, What about creating a static library that would be linked against both the executable and the library ? Hth Jc On Mon, Apr 22, 2013 at 2:45 PM, Nick Gnedin ngne...@gmail.com wrote: Folks, I am using CMake to create 2 targets - a stand-alone executable and a library that can be

Re: [CMake] is it possible to download CMake modules at configure time?

2013-04-19 Thread Jean-Christophe Fillion-Robin
, indeed the approach you demostrated works for me! this is exactly what i needed. thank you again! (i am sorry for coming back to you so late; was too busy with other things) best regards, radovan On Sat, 13 Apr 2013 12:24:02 +0200, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com

Re: [CMake] is it possible to download CMake modules at configure time?

2013-04-19 Thread Jean-Christophe Fillion-Robin
that require Fortran, C, and C++, as well as MPI/OpenMP, BLAS, and LAPACK. the focus is on scientific computing but i will try to keep things general and generic also for other projects. best greetings, radovan On Fri, 19 Apr 2013 18:45:04 +0200, Jean-Christophe Fillion-Robin

Re: [CMake] is it possible to download CMake modules at configure time?

2013-04-13 Thread Jean-Christophe Fillion-Robin
, 05 Apr 2013 18:13:52 +0200, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com wrote: Hi Radovan, This is possible. You could look at the approach we consider in CTK. See https://github.com/commontk/**CTK/compare/** 00694c9f8a0da6ee28fb079902e6a8**c3ec428058

Re: [CMake] TARGET_LINK_LIBRARIES got a link error

2013-04-12 Thread Jean-Christophe Fillion-Robin
Hi Lloyd, Seems you have a small typo, target name case should be consistent. Try to use: TARGET_LINK_LIBRARIES(Tutorial Reverse) instead of TARGET_LINK_LIBRARIES(Tutorial reverse) Hth Jc On Fri, Apr 12, 2013 at 2:48 AM, Lloyd lloydkl.t...@gmail.com wrote: On Fri, Apr 12, 2013

Re: [CMake] Rebuilding cmake itself on Windows

2013-04-12 Thread Jean-Christophe Fillion-Robin
Hi Paul, Set option CMAKE_INSTALL_PREFIX to a location of your choice Then, build INSTALL target Hth Jc On Fri, Apr 12, 2013 at 4:46 PM, Paul Smith p...@mad-scientist.net wrote: Hi all; I need to rebuild cmake to incorporate a fix that has been added since the last release (I could get a

Re: [CMake] Rebuilding cmake itself on Windows

2013-04-12 Thread Jean-Christophe Fillion-Robin
open the associated solution file in visual studio and build the INSTALL target. Hth Jc On Fri, Apr 12, 2013 at 5:58 PM, Paul Smith p...@mad-scientist.net wrote: On Fri, 2013-04-12 at 17:04 -0400, Jean-Christophe Fillion-Robin wrote: Hi Paul, Set option CMAKE_INSTALL_PREFIX to a location

Re: [CMake] is it possible to download CMake modules at configure time?

2013-04-05 Thread Jean-Christophe Fillion-Robin
Hi Radovan, This is possible. You could look at the approach we consider in CTK. See https://github.com/commontk/CTK/compare/00694c9f8a0da6ee28fb079902e6a8c3ec428058...891aa5443b110cc7e6aa0ec1339aad4b2c83ef9d Hth Jc On Fri, Apr 5, 2013 at 12:03 PM, radovan bast radovan.b...@irsamc.ups-tlse.fr

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Jean-Christophe Fillion-Robin
Consider looking at the implementation of PreventInSourceBuilds.cmake in ITK See https://github.com/Kitware/ITK/blob/master/CMake/PreventInSourceBuilds.cmake May it could be generalized and integrated in CMake itself ? Jc On Thu, Apr 4, 2013 at 12:49 PM, Andreas Stahl

Re: [CMake] non-png backgrounds for dmg packages

2013-04-01 Thread Jean-Christophe Fillion-Robin
Hi Brian, Thanks for contributing. Looks good to me Would it be possible to create a topic and push it into our staging area ? See http://www.cmake.org/Wiki/CMake/Git/Develop#Share_a_Topic Thanks Jc On Mon, Apr 1, 2013 at 3:14 AM, Brian Milco bcmi...@gmail.com wrote: Hi, First, thanks for

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Jean-Christophe Fillion-Robin
Hi Zkhan, Do you confirm that you configured your project in an empty new directory ? Hth Jc On Thu, Mar 28, 2013 at 10:00 AM, zkhan zamir.k...@gmail.com wrote: I am trying to migrate a fairly large project from VS 2008 to VS 2010. However, when I use CMake to generate the Visual Studio 10

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Jean-Christophe Fillion-Robin
Hi, By default solution files are probably associated with VS2008, did you make sure you were starting VS2010, then doing File - Open and selecting the generated solution files ? Hth Jc On Thu, Mar 28, 2013 at 10:18 AM, Zamir Khan zamir.k...@gmail.com wrote: I re-did this just to confirm and

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Jean-Christophe Fillion-Robin
are correct anyway. On Thu, Mar 28, 2013 at 10:31 AM, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com wrote: Hi, By default solution files are probably associated with VS2008, did you make sure you were starting VS2010, then doing File - Open and selecting the generated solution

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Jean-Christophe Fillion-Robin
What about trying CMake 2.8.11rc1 ? See http://www.kitware.com/blog/home/post/462 On Thu, Mar 28, 2013 at 10:47 AM, Zamir Khan zamir.k...@gmail.com wrote: Good idea, but unfortunately the same results with the 32-bit version. And yes, it is VS 2010 Professional. CMake is version 2.8.10.2.

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Jean-Christophe Fillion-Robin
+1 On Thu, Mar 28, 2013 at 12:25 PM, David Cole dlrd...@aol.com wrote: CMake needs no new Find modules. All projects should provide a project config file .cmake script readable by CMake's find_package, and installed in a location where CMake can find it, so that a CMake find module is

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Jean-Christophe Fillion-Robin
Hi Alan, You could look at: https://github.com/davidsansome/python-cmake-buildsystem More particularly this commit: - Export targets from both the installed and build tree [1] - Add generation of PROJECT_NAMEConfig.cmake [2] [1]

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

2013-03-28 Thread Jean-Christophe Fillion-Robin
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 in the system package registry is a bad idea when building the same package multiple time as it is done on a dashboard client or a developer

  1   2   >