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 T

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). > > include_dir

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

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 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 environment var M

[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") link_directories("${ENV[MSSDK_

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

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 > install

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

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 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 run them as par

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

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 affec

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

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

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

2012-01-31 Thread Nicolas Desprès
On Tue, Jan 31, 2012 at 5:04 PM, Bill Hoffman 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 all sub-dire

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í wrote: > I want to use ExternalProject_Add,

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

2012-01-31 Thread Eric Noulard
2012/1/31 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'.  T

Re: [CMake] Fix and feature for NSIS template

2012-01-31 Thread Eric Noulard
2012/1/31 Mattias Helsing : > 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 installer runs an e

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

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

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 be

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

2012-01-31 Thread Brad King
On 1/31/2012 11:00 AM, Brad King wrote: 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 will

Re: [CMake] Compile flag issues and VS Express

2012-01-31 Thread Glenn Coombs
On a related note: http://www.gccxml.org/Bug/view.php?id=12437 can you check if ITK and VTK build fine without the large stack size argument (/STACK:1000) as well ? -- Glenn On 30 January 2012 15:58, Bill Lorensen wrote: > ITK and VTK both build fine if I remove the /Zm1000 flag. > > On M

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 thi

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

2012-01-31 Thread Nicolas Desprès
On Tue, Jan 31, 2012 at 2:23 PM, Brad King 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 > be tricky

[CMake] Fix and feature for NSIS template

2012-01-31 Thread Mattias Helsing
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 installer runs an external installer for a driver and thus t

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.txt, CMake/pv-forward.c.in

[CMake] runtime dependencies for tests

2012-01-31 Thread Massaro Alessio
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 run. I understand on the Linux/Solaris I can use RPATH

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] 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 no

[CMake] Boost_ADDITIONAL_VERSIONS works not correctly

2012-01-31 Thread Jan Dinger
Hello Folks, I've issue with my CMake. I'm looking for a boost installation and components. I the right version of boost, but there is some mistake. CMake links my program against libboost_thread.so.1.46.1 that is not correct. The correct version is libboost_thread.so.1.4.7.0. Every boost library