Re: [cmake-developers] Improving CPack Documentation (and may be others as well)

2012-01-31 Thread Eric Noulard
2012/1/25 Brad King brad.k...@kitware.com: On 1/25/2012 3:20 PM, Eric Noulard wrote: So with my proposal you can perfectly document a script in the middle of the file or as usual just in front of the concerned macro/function/var. This may be easier for doc maintenance because the

Re: [cmake-developers] Improving CPack Documentation (and may be others as well)

2012-01-31 Thread Rolf Eike Beer
Ok Agreed. Just merged the branch to next. Just spotted a bug in it: @@ -559,6 +511,8 @@ bool cmDocumentation::CreateSingleModule(const char* fname, { if(line.size() line[0] == '#') { + /* line beginnings with ## are mark-up ignore them */ + if (line[1] == '#')

Re: [cmake-developers] Improving CPack Documentation (and may be others as well)

2012-01-31 Thread Eric Noulard
2012/1/31 Rolf Eike Beer e...@sf-mail.de: Ok Agreed. Just merged the branch to next. Just spotted a bug in it: @@ -559,6 +511,8 @@ bool cmDocumentation::CreateSingleModule(const char* fname,     {     if(line.size() line[0] == '#')       { +      /* line beginnings with ## are mark-up

Re: [cmake-developers] Ninja generator on Windows

2012-01-31 Thread Peter Kümmel
On 31.01.2012 04:55, Bill Hoffman wrote: - Paths like 'c:\' - Ninja now supports colon escaping c: - c$: Is there a single place where the escaping could be done? Can we use Posix paths in the windows ninja generator instead of windows paths? I am guessing ninja would be happier with them.

Re: [cmake-developers] Improving CPack Documentation (and may be others as well)

2012-01-31 Thread Eric Noulard
2012/1/31 Eric Noulard eric.noul...@gmail.com: 2012/1/31 Rolf Eike Beer e...@sf-mail.de: Ok Agreed. Just merged the branch to next. Just spotted a bug in it: @@ -559,6 +511,8 @@ bool cmDocumentation::CreateSingleModule(const char* fname,     {     if(line.size() line[0] == '#')       {

Re: [cmake-developers] Improving CPack Documentation (and may be others as well)

2012-01-31 Thread Rolf Eike Beer
Eric Noulard wrote: 2012/1/31 Eric Noulard eric.noul...@gmail.com: 2012/1/31 Rolf Eike Beer e...@sf-mail.de: Ok Agreed. Just merged the branch to next. Just spotted a bug in it: @@ -559,6 +511,8 @@ bool cmDocumentation::CreateSingleModule(const char* fname, {

Re: [cmake-developers] Ninja generator on Windows

2012-01-31 Thread Peter Kümmel
On 31.01.2012 16:19, Peter Collingbourne wrote: On Tue, Jan 31, 2012 at 12:15:59AM +0100, Peter Kümmel wrote: I played a bit with the Ninja generator on Windows, and added some hacks to make it a bit running: https://github.com/syntheticpp/CMake/commit/0a55b61271106eb7c3319340f2c54f6bab3c0f8b

Re: [cmake-developers] Ninja generator on Windows

2012-01-31 Thread Peter Kümmel
Therefore the question, if there is a single place where all the slashes could be replaced by backslashes before we write them down to the ninja file. All of that is done in the cmLocalGenerator for the NMake and Jom generators that use windows paths: enum RelativeRoot { NONE, FULL,

Re: [cmake-developers] Ninja generator on Windows

2012-01-31 Thread Brad King
On 1/31/2012 4:44 PM, Peter Kümmel wrote: OK, thanks. I already noticed the usage of OutputFormat::SHELL. Then I have to extend cmLocalGenerator by a Ninja case. It will be similar to NMake but additionally replaces colons by '$:'. Should I add kwsysSystem_Shell_Flag_Ninja in System.h? Yes.

Re: [cmake-developers] Ninja generator on Windows

2012-01-31 Thread Nicolas Desprès
On Tue, Jan 31, 2012 at 10:32 PM, Peter Kümmel syntheti...@gmx.net wrote: On 31.01.2012 16:19, Peter Collingbourne wrote: On Tue, Jan 31, 2012 at 12:15:59AM +0100, Peter Kümmel wrote: I played a bit with the Ninja generator on Windows, and added some hacks to make it a bit running:

[cmake-developers] [CMake 0012923]: NSIS installer doesn't honor user permission

2012-01-31 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12923 == Reported By:helsing72 Assigned To:

Re: [cmake-developers] Ninja generator on Windows

2012-01-31 Thread Peter Collingbourne
On Tue, Jan 31, 2012 at 10:32:23PM +0100, Peter Kümmel wrote: On 31.01.2012 16:19, Peter Collingbourne wrote: On Tue, Jan 31, 2012 at 12:15:59AM +0100, Peter Kümmel wrote: - Paths like 'c:\' - Ninja now supports colon escaping c: - c$: Is there a single place where the escaping could be

Re: [cmake-developers] Improving CPack Documentation (and may be others as well)

2012-01-31 Thread Rolf Eike Beer
Am Dienstag, 31. Januar 2012, 23:39:30 schrieb Eric Noulard: 2012/1/31 Rolf Eike Beer e...@sf-mail.de: Eric Noulard wrote: 2012/1/31 Rolf Eike Beer e...@sf-mail.de: Should be fixed and pushed. Merge topic 'ImproveCPackDoc-reloaded' into next cc4ac32 Calm down compiler warning

Re: [CMake] Boost_ADDITIONAL_VERSIONS works not correctly

2012-01-31 Thread Rolf Eike Beer
find_package(Boost COMPONENTS ${GGMCONTROL_BOOST_COMPONENTS} REQUIRED) if(NOT Boost_FOUND) # Try again with the other type of libs set(Boost_USE_STATIC_LIBS NOT ${Boost_USE_STATIC_LIBS}) find_package(Boost COMPONENTS ${GGMCONTROL_BOOST_COMPONENTS} QUIET) endif() This has nothing

Re: [CMake] 'Parallel' CMakeLists.txt?

2012-01-31 Thread Brad King
On 1/28/2012 11:36 AM, g...@novadsp.com wrote: Is it possible to get CMake to process/search for an alternative default filename to CMakeLists.txt? Not currently. We're not fundamentally opposed to the idea, but it may be tricky to get the interface right. Should the alternate name be used

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] 'Parallel' CMakeLists.txt?

2012-01-31 Thread Nicolas Desprès
On Tue, Jan 31, 2012 at 2:23 PM, Brad King brad.k...@kitware.com wrote: On 1/28/2012 11:36 AM, g...@novadsp.com wrote: Is it possible to get CMake to process/search for an alternative default filename to CMakeLists.txt? Not currently.  We're not fundamentally opposed to the idea, but it may

Re: [CMake] 'Parallel' CMakeLists.txt?

2012-01-31 Thread Brad King
On 1/31/2012 10:55 AM, Nicolas Desprès wrote: All these considerations are important but maybe we could just do first the easy path which is: add a -f option which change the default name every where, for all sub-directories, try_compile, etc... I'm willing to entertain patches but I really

Re: [CMake] 'Parallel' CMakeLists.txt?

2012-01-31 Thread Bill Hoffman
On 1/31/2012 10:55 AM, Nicolas Desprès wrote: Brad, All these considerations are important but maybe we could just do first the easy path which is: add a -f option which change the default name every where, for all sub-directories, try_compile, etc... Changing for try_compile is going to

Re: [CMake] 'Parallel' CMakeLists.txt?

2012-01-31 Thread John Drescher
This sounds like a job for distributed version control.  In Git you could keep a branch with your CMakeLists.txt changes and keep merging from the main branch to keep up with the other changes. That is basically what I do when I make changes that I know will break the build. I create a new

[CMake] cmake -E copy with file permission changes

2012-01-31 Thread James Bigler
We use perforce for our source control, and perforce typically syncs files as read only until you check them out for editing. During our build process we copy a few scripts from the source tree to the build tree using 'cmake -E copy' in an 'add_custom_command'. This works famously until we try

[CMake] ExternalProject_Add and BUILD_COMMAND

2012-01-31 Thread Francisco Requena Espí
I want to use ExternalProject_Add, but in order to build my project I need to call 'make macosx'. I do: EXTERNALPROJECT_ADD(PROJ SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/proj1 CONFIGURE_COMMAND BUILD_COMMAND make macosx BUILD_IN_SOURCE 1 INSTALL_COMMAND ) But it doesn't work (it says it cannot

Re: [CMake] Fix and feature for NSIS template

2012-01-31 Thread Eric Noulard
2012/1/31 Mattias Helsing helsin...@gmail.com: Hi all I found a bug in NSIS.template.in thats been bothering me for a while. The NSIS scripting language allows relative jumps that are relative to the _current_ command and an error in said file bypasses users permission check. Also my

Re: [CMake] cmake -E copy with file permission changes

2012-01-31 Thread Eric Noulard
2012/1/31 James Bigler jamesbig...@gmail.com: We use perforce for our source control, and perforce typically syncs files as read only until you check them out for editing. During our build process we copy a few scripts from the source tree to the build tree using 'cmake -E copy' in an

Re: [CMake] ExternalProject_Add and BUILD_COMMAND

2012-01-31 Thread David Cole
Take the double quotes away and just use: BUILD_COMMAND make macosx Use $(MAKE) instead of make if you want to pass the outer level make's -j parallelism down to the inner make... HTH, David On Jan 31, 2012, at 12:54 PM, Francisco Requena Espí frar...@gmail.com wrote: I want to use

Re: [CMake] 'Parallel' CMakeLists.txt?

2012-01-31 Thread Nicolas Desprès
On Tue, Jan 31, 2012 at 5:04 PM, Bill Hoffman bill.hoff...@kitware.com wrote: On 1/31/2012 10:55 AM, Nicolas Desprès wrote: Brad, All these considerations are important but maybe we could just do first the easy path which is: add a -f option which change the default name every where, for

[CMake] cmake can't find some crtbegin.so, libgcc, libgcc_s under certain conditions

2012-01-31 Thread Jim Galarowicz
Hi all, I'm running into issues with cmake or likely our set-up/usage of cmake, when trying to build the component based tool framework (CBTF) with cmake. The issue I'm seeing only occurs on machines where binutils-devel is not installed and I build my own version of binutils. It seems that

Re: [CMake] cmake can't find some crtbegin.so, libgcc, libgcc_s under certain conditions

2012-01-31 Thread Rolf Eike Beer
Jim Galarowicz wrote: Hi all, I'm running into issues with cmake or likely our set-up/usage of cmake, when trying to build the component based tool framework (CBTF) with cmake. The issue I'm seeing only occurs on machines where binutils-devel is not installed and I build my own version of

Re: [CMake] cmake -E copy with file permission changes

2012-01-31 Thread Glenn Coombs
We have recently switched from cvs to perforce and encountered the same problem. In our case the fix was to change the CMakeList.txt file to refer directly to the file in the source tree rather than first copying it to the build tree and then referring to it there. As the clean command only

[CMake] Make NSIS generator generate installer that requires admin or power user

2012-01-31 Thread Mattias Helsing
Hi, I'm a user of the NSIS generator of CPack to generate nice windows installers. Often lately I have embedded external installers with my installer and then run them as part of my installer. This is working really nice except for one thing; if you need to install drivers or services the entire

Re: [CMake] Make NSIS generator generate installer that requires admin or power user

2012-01-31 Thread Mattias Helsing
...and of course I forgot the patch. Here it is. Mattias On Wed, Feb 1, 2012 at 12:06 AM, Mattias Helsing helsin...@gmail.com wrote: Hi, I'm a user of the NSIS generator of CPack to generate nice windows installers. Often lately I have embedded external installers with my installer and then

[CMake] Enhancement to CHECK_C_RUNS_SOURCE

2012-01-31 Thread Clifford Yapp
We currently have a minor local enhancement to CHECK_C_RUNS_SOURCE that I would like to contribute back to the main module, if it is acceptable to the developers of CMake: We often have our own .c file stored in our tree for TRY_RUN testing, and it is convenient to be able to use

Re: [CMake] cmake can't find some crtbegin.so, libgcc, libgcc_s under certain conditions

2012-01-31 Thread Michael Hertling
On 01/31/2012 09:14 PM, Jim Galarowicz wrote: Hi all, I'm running into issues with cmake or likely our set-up/usage of cmake, when trying to build the component based tool framework (CBTF) with cmake. The issue I'm seeing only occurs on machines where binutils-devel is not installed and

Re: [CMake] runtime dependencies for tests

2012-01-31 Thread Michael Hertling
On 01/31/2012 02:43 PM, Massaro Alessio wrote: Hi There I googled near and far, but could not find a way to tell CTest where to find the 3rd-party DLLs required to run the test executables. In particular my executable targets link with a few Boost DLLs/SOs and obviously require them to

[CMake] syntax error on Win7 x64

2012-01-31 Thread Dev Guy
I am seeing an error from CMake on Win7 x64 that I don't see in WinXP. The following 2 statements seems to be causing the errors below (I've double checked that the environment var MSSDK_ROOT exists and is defined). include_directories(${ENV[MSSDK_ROOT]}\\Include)

Re: [CMake] syntax error on Win7 x64

2012-01-31 Thread Dev Guy
OK I realized my error, I should be using $ENV{MSSDK_ROOT} On Wed, Feb 1, 2012 at 12:02 AM, Dev Guy devguy...@gmail.com wrote: I am seeing an error from CMake on Win7 x64 that I don't see in WinXP. The following 2 statements seems to be causing the errors below (I've double checked that the

[CMake] Intel MKL with FindBLAS and FindLAPACK on OS X?

2012-01-31 Thread Andreas Voegel
I am trying to include Intel's MKL in my project by including the following in my CMakeLists.txt file: set( ENV{BLA_VENDOR} Intel10_64lp ) find_package (LAPACK) Unfortunately, when I execute cmake I receive the following errors: -- A library with BLAS API not found. Please specify library

Re: [CMake] syntax error on Win7 x64

2012-01-31 Thread Rolf Eike Beer
Am Mittwoch, 1. Februar 2012, 00:02:57 schrieb Dev Guy: I am seeing an error from CMake on Win7 x64 that I don't see in WinXP. The following 2 statements seems to be causing the errors below (I've double checked that the environment var MSSDK_ROOT exists and is defined).

Re: [CMake] Enhancement to CHECK_C_RUNS_SOURCE

2012-01-31 Thread Rolf Eike Beer
Am Dienstag, 31. Januar 2012, 19:27:22 schrieb Clifford Yapp: We currently have a minor local enhancement to CHECK_C_RUNS_SOURCE that I would like to contribute back to the main module, if it is acceptable to the developers of CMake: We often have our own .c file stored in our tree for

[Cmake-commits] CMake branch, master, updated. v2.8.7-218-gb2215bd

2012-01-31 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via b2215bdb26c3e1f376232e6ef974e6208bf681f6 (commit) from