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: > Platfo

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 pl

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 BundleUtilit

[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 publishe

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 hel

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 http://www.cmake.org/cmake/help/v3.1/manual/cmak

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 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. See [1] and [2]

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 https://github.com/Slicer/Slicer/blob/ee84fba523d85be3539bf8c83c8eb73d4f59cfff/SuperBuild/External_OpenSSL.cmake#L231-L

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 ad

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] 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] https://github.com/kripken

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 wrote: > Ok, apparently I'm the only person that can't figure out how generator > expressions work bu

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] 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 : http://cmake.3232098.n2.nabble.com/Mac-loader-path-for-rpath-questions-tp758

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 w

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, jmer

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 expende

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] http://www.

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, 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 [mailto:cmake-boun...@cmake.org] *On Be

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 wrote

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

2014-06-02 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 ${_EP_AR

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: https://github.com/commontk/Artichoke/tree/master/

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} $ --arg1 ... ) where TheProject_LAUNCH_COMMAND is a variable pointing to a launcher There are few options

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 wrote: > On 2014-01-26 17:36+0100 Stephen Kelly wrote: > > http://doc-snapsho

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) QT4

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 https://github.com/Slicer/Slicer/blob/c5a39acf7af28ba82cc0097c84d1ebda89cce3b4/SuperBuild/External_teem.c

Re: [CMake] Reverse logic

2014-01-29 Thread Jean-Christophe Fillion-Robin
Hi Rob, What about: if( NOT USE_SYSTEM_FOO) # Build my own FOO endif() Hth Jc On Wed, Jan 29, 2014 at 7:09 PM, Rob McDonald wrote: > I feel like this is a really dumb question, but I've got myself wrapped > around the axel > > I'd like to use a negative conditional on a variable that

Re: [CMake] Feature request - Build Button

2013-12-05 Thread Jean-Christophe Fillion-Robin
That would be a great addition. Jc On Thu, Dec 5, 2013 at 4:19 PM, Eric Noulard wrote: > 2013/12/5 Macumber, Daniel : > > I’m sure this has come up before but I’m curious if CMake-GUI would ever > > consider adding a “Build” button? This seems like a logical step after > > “Configure” and “Gen

Re: [CMake] INSTALL CODE Error Results and Termination

2013-11-13 Thread Jean-Christophe Fillion-Robin
:42 AM, David Hauck wrote: > > Hi Jean-christophe, > > > > On chris.filli...@kitware.com], Jean-Christophe Fillion-Robin wrote: > >> Hi David, > >> > >> You need to escape the "$" sign otherwise the "_err", "_out&

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 ${CMAK

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

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 wrote: > Hello, > > Of course you can. > > Take a look at winstng for instance, which builds a lot of non-CMake > projects with ExternalProject: > > > https://elpauer.a

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] [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 = Pre-load a script to populate the cache. -D := = Create a cmake cache entry. -U = Remove matching entries from CMake cache. -G

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

2013-11-01 Thread Jean-Christophe Fillion-Robin
quite sure I've 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

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 . wrote: > I've already searched

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 wrote: > Hi, > > I have a mixed C++/Pyt

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

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

2013-09-16 Thread Jean-Christophe Fillion-Robin
Some background about the Slicer build system that inspired the NamicExternalProjects system discussed by Kent ... Before CMake 2.8.8, we disabled the UPDATE of external project because it was not working well with Visual Studio. While this was working as expected, the overall build time was also

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 wrote: > Is this the right list to ask this question? > > Cheers! > Andrew Hundt > > > On Sat, Jun 15,

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, Jo

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 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 updated versio

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 wrote: > Hi, > > I am trying to chec

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 < matthew.woeh...@kit

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 wrote: > On Monday 29 April 2013, Philippe Cerfon wrote: > > Hi. > > > > I've always thought one o

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

2013-04-25 Thread Jean-Christophe Fillion-Robin
ently 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 "Ninj

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 T

[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: https://github.com/jcfr/CMakeBundleUtilitiesExample/compare/f7a594ffba72b8cb83df9a166d788

Re: [CMake] cmake script profiler

2013-04-24 Thread Jean-Christophe Fillion-Robin
.3232098.n2.nabble.com/is-it-possible-to-download-CMake-modules-at-configure-time-td7583968.html On Wed, Apr 24, 2013 at 5:32 PM, Volo Zyko wrote: > Hi Jean-Christophe, > > Thanks for the suggestion. We'll definitely consider it. > > -- > Volo Zyko > > On Thu, Apr 25, 2013

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 t

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 We

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") an

Re: [CMake] CPack Generator for the Mac App Store

2013-04-23 Thread Jean-Christophe Fillion-Robin
Hi Folks, As far as I remember, there is an issue with the "install(CODE | SCRIPT ..." that prevent it from being executed last. As a workaround, something like this could be done: https://github.com/Slicer/Slicer/blob/32979bf79bc2db503bbbe4b29082d5dd97411ebb/CMake/SlicerCPack.cmake#L61-66 See ht

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 wrote: > > Folks, > > I am using CMake to create 2 targets - a stand-alone executable and a > library that can be imported by Py

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

2013-04-19 Thread Jean-Christophe Fillion-Robin
mostrated 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 >>> >>

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

2013-04-19 Thread Jean-Christophe Fillion-Robin
hristophe, > > 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

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

2013-04-13 Thread Jean-Christophe Fillion-Robin
radovan > > > On Fri, 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.co

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 wrote: > On Fri, 2013-04-12 at 17:04 -0400, Jean-Christophe Fillion-Robin wrote: > > Hi Paul, > > > Set option CMAKE_INSTALL_PREFIX to a locat

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 wrote: > Hi all; I need to rebuild cmake to incorporate a fix that has been added > since the last release (I could get a nightly build but I wa

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 wrote: > > > > On Fri, Apr 12, 2013 at 11:58 AM, Rolf Ei

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 wrote: > > Am 04.04.2013

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 wrote: > Hi, > > First, thanks for a great tool. >

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

2013-03-28 Thread Jean-Christophe Fillion-Robin
phen Kelly > To: cmake > 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 ...)" >> >

[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 workst

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 Config.cmake [2] [1] https://github.com/davidsansome/python-cmake-buildsystem/commit/73134d77881

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 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 completely un

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 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. > > > > -- > View this

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Jean-Christophe Fillion-Robin
iations > 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 st

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 wrote: > I re-did this just to confirm and yes, I start with

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 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 Win64" solution >

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 wrote: > Hi there, > > I'm trying to get the CMake / CTest / CDash trinity going. Unfortunately > my webserver does

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 wrote: > Hi, > > I am writing a Linux bash script to ru

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 Bi

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 > wrote: > > > > Thanks. I may have to do that for now. > > > > However, it seems

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

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 wrote: > On 2/21/2013 12:59 PM, Jean-Christophe Fillion-Robin wrote: > >&

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 wrote: > As I'm now deep in tracing through 80K lines of cmake --trace output, man > I'd love some sort of CMa

[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 wrote: > On 2/21/201

Re: [CMake] Install on Ubuntu

2013-02-20 Thread Jean-Christophe Fillion-Robin
On Wed, Feb 20, 2013 at 3:58 PM, Alain Aupeix wrote: > 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

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

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

2013-02-15 Thread Jean-Christophe Fillion-Robin
.ha...@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: > >&

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
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] 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 शिरीष wrote

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] http://www.cmake.org/Wiki/CMak

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 wrote: > On Monday 04 February 2013, David Cole wrote: > > The OpenChemistry

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 wrote: > On Tue, 5 Feb 2013 09:22:35 -0600, Kent Williams said: > > >And

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 wrote: > Building o

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 usin

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 wrote: > Hello > Is it

[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: http:

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 coul

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 wit

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 C

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 wrote: > > Since I do not see a FindNmake or the likes, i

[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 en

  1   2   >