Re: [CMake] Permission issues with install command on Vista

2011-05-11 Thread Rolf Eike Beer
> Hello, > > actual I'm struggling with CMAKE INSTALL command on Windows Vista, when > I try to copy the resulting DLL to the system32 folder using this > command: > > INSTALL(FILES ${CMAKE_SOURCE_DIR}/lib/lib${LIBRARY_NAME}.dll DESTINATION > $ENV{SYSTEMROOT}/System32/) > > On XP this command could

Re: [CMake] Parameters of functions

2011-05-11 Thread Rolf Eike Beer
> This is funny: > FUNCTION(build var) > MESSAGE(STATUS "var: " ${${var}}) > ENDFUNCTION(build) > > SET(var red blue yellow green) > build(var) > > Output: > -- var: var > > SET(varX red blue yellow green) > build(varX) > Output: > -- var: redblueyellowgreen No, it must be that way. Inside b

[CMake] Permission issues with install command on Vista

2011-05-11 Thread Heine, Christian (EXTERN: VWGEDS)
Hello, actual I'm struggling with CMAKE INSTALL command on Windows Vista, when I try to copy the resulting DLL to the system32 folder using this command: INSTALL(FILES ${CMAKE_SOURCE_DIR}/lib/lib${LIBRARY_NAME}.dll DESTINATION $ENV{SYSTEMROOT}/System32/) On XP this command could be used without

[CMake] Parameters of functions

2011-05-11 Thread Micha Renner
This is funny: FUNCTION(build var) MESSAGE(STATUS "var: " ${${var}}) ENDFUNCTION(build) SET(var red blue yellow green) build(var) Output: -- var: var SET(varX red blue yellow green) build(varX) Output: -- var: redblueyellowgreen Greetings Micha

Re: [CMake] FindZLIB on ubuntu 11.04

2011-05-11 Thread Andreas Rönnquist
On 2011-05-12 03:55, Surya Kiran Gullapalli wrote: > Hello, > > With 64bit Ubuntu 11.04, CMake is unable to find ZLIB library. This is > because the library libz.so is located in a non-standard location > /lib/x86_64-linux-gnu/libz.so and /usr/lib/x86_64-linux-gnu/libz.so (a > symbolic link to the

[CMake] FindZLIB on ubuntu 11.04

2011-05-11 Thread Surya Kiran Gullapalli
Hello, With 64bit Ubuntu 11.04, CMake is unable to find ZLIB library. This is because the library libz.so is located in a non-standard location /lib/x86_64-linux-gnu/libz.so and /usr/lib/x86_64-linux-gnu/libz.so (a symbolic link to the former). I can create a link for libz.so in /usr/lib, but is t

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

2011-05-11 Thread Michael Hertling
On 05/11/2011 09:07 PM, Alexander Neundorf wrote: > Hi, > > I'd like to set up a kind of meta super project, which builds a bunch of > subprojects, which contains executable and shared libraries. > These subprojects come from different repositories, mostly git repositories. > > AFAIK I can basic

Re: [CMake] [Insight-developers] Using KWSys to execute a detached process (Linux)

2011-05-11 Thread Brad King
On 05/11/2011 05:22 PM, Daniel Blezek wrote: > the detach code does not seem to be tested It is built as a test in KWSys under CMake but is not run automatically. I don't remember why, but I can run the test by hand and it passes: $ ./kwsysTestProcess 8 Output on stdout before test 8. Output o

[CMake] Using KWSys to execute a detached process (Linux)

2011-05-11 Thread Daniel Blezek
Hi, I¹ve been fruitlessly trying to use KWSys to execute a detached process in Linux. Perhaps it is not surprising that this fails, because the detach code does not seem to be tested. Does anyone have an experience or suggestions? Here¹s a snippit of my code: itksysProcess_SetCommand (

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

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

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

2011-05-11 Thread Alexander Neundorf
On Wednesday 11 May 2011, Jean-Christophe Fillion-Robin wrote: > Hi Alexander, > > Assuming the subproject are CMakeified: > > 1) Set the INSTALL command of each External project to an empty string ...but the INSTALL_DIR to the final location I assume ? Then the project will be built in build

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

2011-05-11 Thread Jean-Christophe Fillion-Robin
Hi Alexander, Assuming the subproject are CMakeified: 1) Set the INSTALL command of each External project to an empty string 2 ) In yout CPack file, you could use a syntax similar to the one reported below: if(EXISTS "${VTK_DIR}/CMakeCache.txt") set(CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_I

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

2011-05-11 Thread Alexander Neundorf
Hi, I'd like to set up a kind of meta super project, which builds a bunch of subprojects, which contains executable and shared libraries. These subprojects come from different repositories, mostly git repositories. AFAIK I can basically do this using the ExternalProject_add() feature of cmake,

Re: [CMake] Trying to rebuild cmake on windoze...

2011-05-11 Thread Michael Wild
On 05/11/2011 07:23 PM, Dick Munroe wrote: > For which I needed to download the zlib dll, but when I try to fire up > the newly build cmake 2.8.4, I get the following error: > > The procedure entry point GetRunningObjectTable could not be located in > the dynamic link library zlib1.dll > > I'm us

[CMake] Trying to rebuild cmake on windoze...

2011-05-11 Thread Dick Munroe
For which I needed to download the zlib dll, but when I try to fire up the newly build cmake 2.8.4, I get the following error: The procedure entry point GetRunningObjectTable could not be located in the dynamic link library zlib1.dll I'm using the zlib windoze build from the zlib web site. S

Re: [CMake] Express Edition

2011-05-11 Thread Kelly Thompson
FYI - I'm using Microsoft Visual C++ 2010 Express and this variable is not set by CMake for my project (I'm using the visual studio 10 generator). Looking at Windows-cl.cmake for CMake-2.8.4, it appears that CMAKE_USING_VC_FREE_TOOLS is only set when using the NMake Makefiles generator. If I copy

Re: [CMake] OSX Bundling

2011-05-11 Thread jtwadsworth
Michael Jackson wrote: > > Does the app actually use carbon or cocoa for it's windowing API or is > it simply an x11 app that compiles on OS x? What is the name of the > project? Is it open source so that we can download it and take a look? > > Mike Jackson > Not just compiling on OSX (which i

Re: [CMake] Express Edition

2011-05-11 Thread Daniel Pfeifer
CMake does a check for the compiler. But not for the IDE. If you are using the free compiler that is included in C++ Express, then the CMAKE_USING_VC_FREE_TOOLS variable is set. It is however possible to use the free compiler in the professional IDE and vice versa. So using CMAKE_USING_VC_FREE_TO

Re: [CMake] Creating an RPM package on AIX fails

2011-05-11 Thread Pasi Valminen
On Wed, May 11, 2011 at 10:42 AM, Eric Noulard wrote: > 2011/5/11 Pasi Valminen : > > Hi, > > > > I tried to create a simple RPM package on AIX with CPack, but my attempt > > resulted in an empty RPM file since the file list population failed. In > the > > process I got a couple of error messages

Re: [CMake] Creating an RPM package on AIX fails

2011-05-11 Thread Eric Noulard
2011/5/11 Pasi Valminen : > Hi, > > I tried to create a simple RPM package on AIX with CPack, but my attempt > resulted in an empty RPM file since the file list population failed. In the > process I got a couple of error messages from `find' and `sed' which turned > out to be pretty easy to fix to

[CMake] Creating an RPM package on AIX fails

2011-05-11 Thread Pasi Valminen
Hi, I tried to create a simple RPM package on AIX with CPack, but my attempt resulted in an empty RPM file since the file list population failed. In the process I got a couple of error messages from `find' and `sed' which turned out to be pretty easy to fix to work both on Linux and AIX, which doe