Re: [CMake] cmake 2.6.3 RC 11

2009-02-05 Thread Alan W. Irwin
On 2009-02-05 17:40-0500 Bill Hoffman wrote: I have a release candidate (RC 11) for 2.6.3 ready for CMake. Thanks! This should be about the last one. At this point I am only going to fix regressions from previous releases of CMake into 2.6.3, so please try this release. Glad to see the

[CMake] non-dashboard use of purify

2009-02-05 Thread Bill O'Hara
At this url: http://www.vtk.org/Wiki/CMake_Testing_With_CTest I found mention of adding a setting for purify and running as part of nightly tests submitted to a dashboard. Is it possible, in my CMakeLists.txt to point to purify and have a test target which runs purify without having to run one o

Re: [CMake] integrating cmake projects and those built with legacy build systems

2009-02-05 Thread Bill O'Hara
Excellent, thanks David! I'll build CVS HEAD tomorrow and take it for a test drive. On Thu, Feb 5, 2009 at 10:08 AM, David Cole wrote: > It is only in CVS HEAD of CMake at this point, but you may consider using > the new function add_external_project (in Modules/AddExternalProject.cmake) > for

Re: [CMake] CPACK NSIS to install my app under a prefix

2009-02-05 Thread Bill Hoffman
Clinton Stimpson wrote: Visual Studio is hiding the error from you. You'll get better help if you find the real error. There should be a log file in the _CPack_Packages directory. -Bill ___ CMake mailing list CMake@cmake.org http://www.cmake.org

Re: [CMake] CPACK NSIS to install my app under a prefix

2009-02-05 Thread Clinton Stimpson
Visual Studio is hiding the error from you. You'll get better help if you find the real error. Clint Dat Chu wrote: I added set(CPACK_PACKAGING_INSTALL_PREFIX "MyPrefix") and now I get Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." Here is the

[CMake] cmake 2.6.3 RC 11

2009-02-05 Thread Bill Hoffman
I have a release candidate (RC 11) for 2.6.3 ready for CMake. This should be about the last one. At this point I am only going to fix regressions from previous releases of CMake into 2.6.3, so please try this release. Thanks. The files can be found here: http://www.cmake.org/files/v2.6/*RC

Re: [CMake] CPACK NSIS to install my app under a prefix

2009-02-05 Thread Dat Chu
I added set(CPACK_PACKAGING_INSTALL_PREFIX "MyPrefix") and now I get Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." Here is the CPACK related code: include(InstallRequiredSystemLibraries) set(CPACK_GENERATOR "NSIS") set(CPACK_IN

Re: [CMake] Getting full console output on dashboard

2009-02-05 Thread Andriy Fedorov
On Thu, Feb 5, 2009 at 3:23 PM, David Cole wrote: > Why does the output begin with "Setting SLICER home:" > when apparently, the first thing you do in your main is print "ctest needs: > CTEST_FULL_OUTPUT" to cout.? > Yes, I noticed that, but I though CTest commands are removed from the output

Re: [CMake] Getting full console output on dashboard

2009-02-05 Thread Clinton Stimpson
Andriy Fedorov wrote: On Thu, Feb 5, 2009 at 2:46 PM, Clinton Stimpson wrote: You can add this in your ctest script. SET(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 0) SET(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE 0) Well, I don't understand why it should be 0, but in any case th

Re: [CMake] Getting full console output on dashboard

2009-02-05 Thread David Cole
Why does the output begin with "Setting SLICER home:" when apparently, the first thing you do in your main is print "ctest needs: CTEST_FULL_OUTPUT" to cout.? When you run the test in a command prompt, do you see the CTEST_FULL_OUTPUT first...? Are you sure the code rebuilt before you submitt

Re: [CMake] Getting full console output on dashboard

2009-02-05 Thread Andriy Fedorov
On Thu, Feb 5, 2009 at 2:46 PM, Clinton Stimpson wrote: > You can add this in your ctest script. > SET(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 0) > SET(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE 0) > Well, I don't understand why it should be 0, but in any case this doesn't seem to change a

Re: [CMake] Getting full console output on dashboard

2009-02-05 Thread Clinton Stimpson
Andriy Fedorov wrote: Hi, I am trying to get untruncated console output for a *passing* test on dashboard. I found that I can do this with this line: cout << "CTEST_FULL_OUTPUT" << endl; in the source of my test. This doesn't seem to work -- the output is still truncated. My test is here: ht

[CMake] Getting full console output on dashboard

2009-02-05 Thread Andriy Fedorov
Hi, I am trying to get untruncated console output for a *passing* test on dashboard. I found that I can do this with this line: cout << "CTEST_FULL_OUTPUT" << endl; in the source of my test. This doesn't seem to work -- the output is still truncated. My test is here: http://viewvc.slicer.org/v

Re: [CMake] Bundle Generator Background Image/Custom .DS_Store support

2009-02-05 Thread David Cole
I agree with Clint. This belongs in the new cmCPackDragNDropGenerator. On Thu, Feb 5, 2009 at 1:25 PM, Clinton Stimpson wrote: > > cmCPackBundleGenerator has a new base class cmCPackDragNDropGenerator. Can > we please put this functionality there, and if necessary modify the > CompressFiles(...)

Re: [CMake] Bundle Generator Background Image/Custom .DS_Store support

2009-02-05 Thread Clinton Stimpson
cmCPackBundleGenerator has a new base class cmCPackDragNDropGenerator. Can we please put this functionality there, and if necessary modify the CompressFiles(...) so they both get it (maybe the addition of a couple virtual functions would help). The DragNDrop generator supports multiple bundle

[CMake] Bundle Generator Background Image/Custom .DS_Store support

2009-02-05 Thread Mike Arthur
Please review the attached patch for inclusion. It adds support to the bundle generator to add a background image and .DS_Store for people (like myself/Mozilla/Last.fm) who want CPack to be able to set a nice background to the Bundle without having to manually convert it. -- Cheers, Mike Arthur

Re: [CMake] CPACK NSIS to install my app under a prefix

2009-02-05 Thread Clinton Stimpson
Dat Chu wrote: Hello everyone, I would like to install my application under C:\Program Files\MyPrefix\MyAppName I tried using set(CMAKE_INSTALL_PREFIX "MyPrefix") but that doesn't work. I can get MyApp to be installed under C:\Program Files just fine (I guess because that is the default of CP

[CMake] CPACK NSIS to install my app under a prefix

2009-02-05 Thread Dat Chu
Hello everyone, I would like to install my application under C:\Program Files\MyPrefix\MyAppName I tried using set(CMAKE_INSTALL_PREFIX "MyPrefix") but that doesn't work. I can get MyApp to be installed under C:\Program Files just fine (I guess because that is the default of CPACK NSIS generato

Re: [CMake] integrating cmake projects and those built with legacy build systems

2009-02-05 Thread David Cole
It is only in CVS HEAD of CMake at this point, but you may consider using the new function add_external_project (in Modules/AddExternalProject.cmake) for this purpose. There is example usage in the CMake source tree at CMake/Tests/ExternalProject/CMakeLists.txt. It will eventually be released in a

Re: [CMake] Unable to fetch directory name from path

2009-02-05 Thread Alexander Neundorf
On Thursday 05 February 2009, Ashutosh Juneja wrote: > Hi, > > I am unable to fetch only directory name from an absolute path in > CMakeList.txt file. > > GET_FILENAME_COMPONENT(c:/path/to/dir dirname NAME) does no produce any > output. First the variable, then the path: GET_FILENAME_COMPONENT(dir

Re: [CMake] Unable to fetch directory name from path

2009-02-05 Thread David Cole
cmake --help-command GET_FILENAME_COMPONENT You have the variable name and the input reversed. Try this: GET_FILENAME_COMPONENT(dirname "c:/path/to/dir" NAME) On Thu, Feb 5, 2009 at 12:38 PM, Ashutosh Juneja wrote: > Hi, > > I am unable to fetch only directory name from an absolute path in > CM

[CMake] Unable to fetch directory name from path

2009-02-05 Thread Ashutosh Juneja
Hi, I am unable to fetch only directory name from an absolute path in CMakeList.txt file. GET_FILENAME_COMPONENT(c:/path/to/dir dirname NAME) does no produce any output. 1. Is it only for files or not directories? or am I doing any mistake? 2. Is it possible to split a path in an list/array? ( l

Re: [CMake] Creating symbolic links

2009-02-05 Thread Tyler Roscoe
On Thu, Feb 05, 2009 at 08:19:31AM -0800, Tyler Roscoe wrote: > On Thu, Feb 05, 2009 at 09:11:10AM -0500, Schrader, Glenn wrote: > > I'm having some trouble with one of my CMakeLists.txt files. What I want to > > do is to create a symbolic link to a file in another directory if it > > doesn't alr

Re: [CMake] Creating symbolic links

2009-02-05 Thread Tyler Roscoe
On Thu, Feb 05, 2009 at 09:11:10AM -0500, Schrader, Glenn wrote: > I'm having some trouble with one of my CMakeLists.txt files. What I want to > do is to create a symbolic link to a file in another directory if it doesn't > already exist. The commands that looked to my like they should work are:

[CMake] CPack: Adding a file to package_source target

2009-02-05 Thread Adolfo Rodríguez
Hello, I have a project with the following structure: trunk |-src |-build_dir1 |-build_dir2 |-another_dir |-CMakeLists.txt |-unimportant_file |-another_unimportant_file I am configuring CPack to make source packages. The content I'm interested in packaging is folder src (and all it

[CMake] Creating symbolic links

2009-02-05 Thread Schrader, Glenn
I'm having some trouble with one of my CMakeLists.txt files. What I want to do is to create a symbolic link to a file in another directory if it doesn't already exist. The commands that looked to my like they should work are: ADD_CUSTOM_TARGET(run echo "run a test") ADD_CUSTOM_COMMAND(OUTPUT myL

Re: [CMake] linking error with libraries

2009-02-05 Thread Philip Lowman
On Thu, Feb 5, 2009 at 4:16 AM, ankit jain wrote: > Hi, > Actually iam linking an excutable to the libraries which is not in the > curretn project meanas they are in other folder outside it. > > i am linking it using target link libraries by giving the entire path of > the libraries but still it

Re: [CMake] CMAKE_MFC_FLAG is inherited in subdirectory ?

2009-02-05 Thread Micha Renner
> Hello > > I have one cmakelists in which I do the following : > set(CMAKE_MFC_FLAG 2) > > > > In the same cmakelists I am using add_subdirectory to add another > project , > and this makes my added directory with sub_directory to have > set CMAKE_MFC_FLAG too ,which is not the behaviour I wa

[CMake] linking error with libraries

2009-02-05 Thread ankit jain
Hi, Actually iam linking an excutable to the libraries which is not in the curretn project meanas they are in other folder outside it. i am linking it using target link libraries by giving the entire path of the libraries but still it shows error . if I am missing something please tell me what el