Re: [CMake] feed parsed information from source files into compile process

2011-02-09 Thread Tyler Roscoe
On Wed, Feb 09, 2011 at 05:24:28PM +0100, Verweij, Arjen wrote: Currently there is a python script that does preprocessing of all source, stores information in override.cmake files using set_source_file_properties(). This works fine, but makes maintaining source more error prone than it was.

Re: [CMake] Automatic out of source build's possible?

2011-02-08 Thread Tyler Roscoe
On Tue, Feb 08, 2011 at 04:56:26AM -0500, Martin O'Brien wrote: I definitely can't rely on the people who are complaining about having to do the -D... to have the correct version installed, or even to recognize when they don't, probably, and if I give them this option, they're going to write

Re: [CMake] The CMake bug tracker and the backlog of unresolved issues

2011-02-03 Thread Tyler Roscoe
(removing cmake-developers; cross-posting felt wrong) On Thu, Feb 03, 2011 at 05:34:45PM -0500, David Cole wrote: Since we do not have a status of backlog -- but we don't really use the status values of acknowledged or confirmed very much, I am thinking we could define backlog as:

Re: [CMake] link against a library under windows

2011-01-31 Thread Tyler Roscoe
On Mon, Jan 31, 2011 at 08:12:49AM +0100, ycollette.nos...@free.fr wrote: if (MKL_FOUND) set(LINK_PATHS ${LINK_PATHS} ${mkl_solver_PATH}) endif (MKL_FOUND) if (MPI_FOUND) set(LINK_PATHS ${LINK_PATHS} ${MPI_BASE_PATH}/lib) endif (MPI_FOUND) link_directories(${LINK_PATHS}) Don't use

Re: [CMake] using svn credentials inside ctest script

2011-01-28 Thread Tyler Roscoe
On Fri, Jan 28, 2011 at 06:22:37AM -0500, David Cole wrote: Storing credentials on the machine in advance is one way to achieve this. (I have not tried this myself, but...) You may also be able to set the CTEST_UPDATE_COMMAND to a script that delegates to svn with all your desired command

Re: [CMake] using svn credentials inside ctest script

2011-01-27 Thread Tyler Roscoe
On Thu, Jan 27, 2011 at 04:11:35AM -0800, girish hilage wrote:    find_program(CTEST_SVN_COMMAND NAMES svn)    set(CTEST_UPDATE_COMMAND ${CTEST_SVN_COMMAND})    set(CTEST_UPDATE_OPTIONS --username my_svn_username --password my_svn_password)    ctest_update(RETURN_VALUE updateRV)    But,

Re: [CMake] using svn credentials inside ctest script

2011-01-27 Thread Tyler Roscoe
On Thu, Jan 27, 2011 at 08:40:14AM -0800, Tyler Roscoe wrote: On Thu, Jan 27, 2011 at 04:11:35AM -0800, girish hilage wrote:    find_program(CTEST_SVN_COMMAND NAMES svn)    set(CTEST_UPDATE_COMMAND ${CTEST_SVN_COMMAND})    set(CTEST_UPDATE_OPTIONS --username my_svn_username --password

[CMake] ctest returns 255 after running ctest_test() if no tests are available

2011-01-27 Thread Tyler Roscoe
I have a CTest script that I use to drive dashboard builds. CTest scripts return 0 (success) if everything works right, or non-zero (failure; I'm getting 255 in this particular case on Linux) if something goes wrong. The problem I'm having is that I call ctest_test() in this script and I have one

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread Tyler Roscoe
On Thu, Jan 20, 2011 at 02:06:33PM +0100, Michael Wild wrote: Ah, yes. I keep forgetting. Might I propose that the documentation about regular expressions be extracted into its own section and then be referenced from all commands that have a REGEX mode? Because, confusingly, the only

Re: [CMake] continuous builds and CTEST_ELAPSED_TIME

2011-01-20 Thread Tyler Roscoe
On Thu, Jan 20, 2011 at 08:38:41PM +, Marco Craveiro wrote: the bit i fail to understand is why is 36000 deemed as a good value rather than ~86400? or is this because a lot of people have copied and pasted from the wiki page? :-) Since the examples come from scripts Kitware uses in

Re: [CMake] cmake and shell commands

2011-01-17 Thread Tyler Roscoe
On Mon, Jan 17, 2011 at 06:24:58PM +, mark...@email.it wrote: ln -s lib/libfreenect.so.0.0 lib/libfreenect.so For this specific problem, check out: http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:SOVERSION Should I use: add_custom_command ? For the general problem of

Re: [CMake] packaging after success testing

2011-01-07 Thread Tyler Roscoe
On Fri, Jan 07, 2011 at 12:52:58PM +0100, ycollette.nos...@free.fr wrote: A while ago, a question similar to this one was posted, but no answer was given. Link? Is it possible to perform the packaging part of a project only if the testing part has been successfully performed ? I do this in

Re: [CMake] how to submit customized test report

2011-01-04 Thread Tyler Roscoe
On Mon, Jan 03, 2011 at 05:48:13AM -0800, girish hilage wrote:    So, now I have to edit Test.xml generated by 'ctest' under directory :    /home/girish/project/trunk/Testing/20110103-1027/    What I would like to know is, if there is any 'CTEST_' variable which would give me path of the

Re: [CMake] echo in execute_process

2010-12-28 Thread Tyler Roscoe
On Fri, Dec 24, 2010 at 04:19:16AM +, luxInteg wrote: in an execute_process() function with ${ECHO} (/bin/echo)what does one set for WORKING_DIRECTORY? 1. I would use ${CMAKE_COMMAND} -E echo rather than /bin/echo. 2. I would not set WORKING_DIRECTORY unless I needed it for some

Re: [CMake] Most convenient way to pass information from dashboard script to cmake script

2010-12-28 Thread Tyler Roscoe
On Mon, Dec 27, 2010 at 03:56:20PM +0100, Wojciech Migda wrote: I'm trying to pass information from a script executed for dashboard submission (ctest -S) to the underlying CMakeLists.txt which is to be parsed by (internally called by ctest) cmake. In other words, I'd like to have a system

Re: [CMake] Please Help - Find HDF5 module on windows isn't finding

2010-12-21 Thread Tyler Roscoe
On Tue, Dec 21, 2010 at 10:04:25AM -0700, Aaron R wrote: I'm trying to setup a cmake project on windows which needs the HDF5 library. I put the prebuilt libraries under c:\hdf5-1.8.5-win32. I set HDF5_ROOT in the cmakelists file and then called find(HDF5). Its not finding it. I've tried

Re: [CMake] BundleUtilities example not working under Windows?

2010-12-21 Thread Tyler Roscoe
On Tue, Dec 21, 2010 at 07:11:36PM +0100, Crni Gorac wrote: Am trying to employ fixup_bundle(), in order to be able to create installers for my Qt-dependent application on Mac and Windows. I have it working fine under Mac, but on Windows it is not working either with my application, or by

Re: [CMake] Questions about FFTW as an External Project within ITK

2010-12-17 Thread Tyler Roscoe
On Fri, Dec 17, 2010 at 10:40:30AM -0600, kent williams wrote: install(FILES ${CMAKE_BINARY_DIR}/FFTW/lib/libfftw3.a DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) install(FILES ${CMAKE_BINARY_DIR}/FFTW/include/fftw3.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include) I'm thinking thats kind of awful,

Re: [CMake] Trying to setup make folder configuration on linux

2010-12-10 Thread Tyler Roscoe
On Fri, Dec 10, 2010 at 08:11:45PM +0100, Louis Hoefler wrote: -- Build files have been written to: /root/massmailer/Debug Probably not a good idea to be doing this kind of thing as root. [100%] Built target massmailer -- Configuring done -- Generating done -- Build files have been written

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-12-09 Thread Tyler Roscoe
, 2010 at 09:37:09PM -0800, Tyler Roscoe wrote: In the process of attempting to fix this, I learned a lot of stuff about how COST is handled that I've never encountered in the docs. Am I missing something? Here are some notes I made about the behavior of COST in CTest. If others find them useful

Re: [CMake] Did anyone manage to get incremental linking working with NMake generator?

2010-12-09 Thread Tyler Roscoe
On Thu, Dec 09, 2010 at 08:44:15AM -0500, Bill Hoffman wrote: On 12/9/2010 5:26 AM, Gabriel Petrovay wrote: Thanks Bill for the trick. Unfortunately this works only for exe targets. It doesn't work for dll's. Moreover, before the link command there is this output: Visual Studio

Re: [CMake] CMake 2.8.4 release scheduled for next month

2010-12-09 Thread Tyler Roscoe
So are you ready to start collecting candidate bugs for 2.8.4? I nominate this one! http://www.vtk.org/Bug/view.php?id=11561 Thanks, tyler On Thu, Dec 09, 2010 at 03:37:16PM -0500, David Cole wrote: We are still planning to start the release candidate cycle for CMake 2.8.4 on Wed. Jan. 12,

Re: [CMake] CMake 2.8.4 release scheduled for next month

2010-12-09 Thread Tyler Roscoe
On Thu, Dec 09, 2010 at 04:09:49PM -0500, David Cole wrote: No: we were ready to start collecting candidate bugs a month and a half ago. That list is now what you see on the roadmap page: http://public.kitware.com/Bug/roadmap_page.php Guess I got my wires crossed. I still believe the bug I

Re: [CMake] Pass exclude test regex in visual studio

2010-12-07 Thread Tyler Roscoe
On Tue, Dec 07, 2010 at 02:39:18AM -0600, j s wrote: Is there a way to pass the ctest -E flag to a visual studio 10 configuration to prevent certain tests from running in the regressions? I don't know of a good way (and I'm not 100% sure what you mean by prevent certain tests from running in

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-12-07 Thread Tyler Roscoe
(i_should_fail_and_run_second_or_first PROPERTIES WILL_FAIL TRUE COST 50 ) On Thu, Dec 02, 2010 at 08:54:12AM -0800, Tyler Roscoe wrote: I've taken the liberty of adding this bug to the tracker: http://www.cmake.org/Bug/view.php?id=11561 ___ Powered

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-12-02 Thread Tyler Roscoe
at its source would obviously be preferable for me. Thanks, tyler On Tue, Nov 30, 2010 at 12:14:56PM -0800, Tyler Roscoe wrote: On Tue, Nov 30, 2010 at 01:29:37PM -0500, Zach Mullen wrote: Hm, yours was a use case we didn't really consider when we were making changes to cost behavior

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-30 Thread Tyler Roscoe
On Fri, Nov 26, 2010 at 10:38:44AM -0500, Zach Mullen wrote: I just realized why this isn't working -- it's actually not a regression. Maybe we have different definitions of regression. I see a feature that used to do one thing but which now does something else. Here is what the docs say about

Re: [CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-30 Thread Tyler Roscoe
On Thu, Nov 25, 2010 at 02:01:31PM +0100, Marcel Loose wrote: On 24-11-2010 at 17:45, in message 20101124164507.gg23...@cryptio.net, Tyler Roscoe ty...@cryptio.net wrote: On Wed, Nov 24, 2010 at 12:11:56PM +0100, Micha Renner wrote: SET(CMAKE_INSTALL_PREFIX /foo/bar CACHE PATH Foo

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-30 Thread Tyler Roscoe
/misunderstanding. Thanks, tyler On Tue, Nov 30, 2010 at 12:43 PM, Tyler Roscoe ty...@cryptio.net wrote: On Fri, Nov 26, 2010 at 10:38:44AM -0500, Zach Mullen wrote: I just realized why this isn't working -- it's actually not a regression. Maybe we have different definitions of regression. I see

Re: [CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-24 Thread Tyler Roscoe
On Wed, Nov 24, 2010 at 12:11:56PM +0100, Micha Renner wrote: SET(CMAKE_INSTALL_PREFIX /foo/bar CACHE PATH Foo install prefix) So, without the test to CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT, and without the FORCE option. No, as I mentioned, there was an article of one the

Re: [CMake] providing library information, what's the cmake way

2010-11-24 Thread Tyler Roscoe
On Wed, Nov 24, 2010 at 11:41:46AM -0500, David Cole wrote: On Wed, Nov 24, 2010 at 11:34 AM, Rolf Eike Beer e...@sf-mail.de wrote: So I think it is _really_ necessary to go through all the CMake documentation items and add a line about when which feature was added. Adding that information

[CMake] test property COST not working in cmake 2.8.3?

2010-11-23 Thread Tyler Roscoe
I use set_tests_properties (... COST -500) to force my code coverage checks to run after all the unit tests have run. This has stopped working and I'm reasonably confident that the only thing that changed was an upgrade from cmake 2.8.0 or 2.8.1 to 2.8.3. I couldn't find anything in the bug

Re: [CMake] Trouble with install()

2010-11-18 Thread Tyler Roscoe
On Thu, Nov 18, 2010 at 10:55:15PM -0500, Braden Walters wrote: #Install headers set(HEADERS test.hpp) foreach(HEADER ${HEADERS}) install(TARGETS ${CMAKE_CURRENT_SOURCE_DIR}/include/${HEADER} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/PROJECT/${HEADER}) endforeach() Try

Re: [CMake] BundleUtilities

2010-11-16 Thread Tyler Roscoe
On Tue, Nov 16, 2010 at 10:15:28PM -0500, David Doria wrote: Is the goal simply to copy ...VTK/bin/libvtkHybrid.a into the package? I tried this: INSTALL(CODE \${VTK_DIR}/bin/libvtkHybrid.a) More like: INSTALL(FILES ${VTK_DIR}/bin/libvtkHybrid.a) tyler

Re: [CMake] cmake for cygwin

2010-10-28 Thread Tyler Roscoe
On Thu, Oct 28, 2010 at 12:49:16PM -0500, Yaakov (Cygwin/X) wrote: We see the defining of WIN32 on Cygwin as a *bug*, not a feature, and it needs to be fixed outright. I think the crux of the dilemma is this: what do you say to the people who rely on this buggy behavior for their packages to

Re: [CMake] CTest: use 'make -k' instead of 'make -i'

2010-10-25 Thread Tyler Roscoe
On Mon, Oct 25, 2010 at 04:54:41PM +0200, Michael Wild wrote: On 25. Oct, 2010, at 16:45 , Marcel Loose wrote: Wouldn't it make more sense to use 'make -k' instead? Some weeks ago I also wanted to propose this, but then realized one important drawback of -k: Say, you have target B

Re: [CMake] How to tell if a target is already defined?

2010-10-19 Thread Tyler Roscoe
On Tue, Oct 19, 2010 at 12:05:21PM -0700, J Decker wrote: WIthout adding a bunch of custom addtions, is there something I can test to see if a target is already defined? Did you try 'if (TARGET ...)'? tyler ___ Powered by www.kitware.com Visit other

Re: [CMake] altering RUN_TESTS post-build command (MSVC + CTest)

2010-09-30 Thread Tyler Roscoe
On Mon, Sep 20, 2010 at 09:07:34AM -0700, Keith Gunderson wrote: I'm using a MSVC 9.0 Generator with Cmake 2.8.2 How do I add a change so that the command for my RUN_TESTS project changes from the default of: C:\Program Files\CMake 2.8\bin\ctest.exe --force-new-ctest-process -C

Re: [CMake] add_test : expand environment variable at running time

2010-09-13 Thread Tyler Roscoe
On Mon, Sep 13, 2010 at 06:01:52PM +0200, Olivier Pierard wrote: - add_test( mpirun -machinefile $TMPDIR myexec ) = will never expand TMPDIR - I don't understand why because in CTestTestfile.cmake, I have add_test( test_name mpirun -machinefile $TMPDIR myexec); if I submit this as a bash

Re: [CMake] How to invoke 64 bit cmd.exe from cmake script on Windows 7 (x64).

2010-08-22 Thread Tyler Roscoe
On Sun, Aug 22, 2010 at 07:36:21PM +0100, Alexander Tarnopolsky wrote: I'm trying to invoke an interactive shell from a cmake script using the following: execute_process (COMMAND ${SHELL} ${ARGS}) And the 32bit cmd.exe is invoked on Windows 7 x64 (since the cmake itself runs in 32bit

Re: [CMake] Build logging

2010-08-18 Thread Tyler Roscoe
On Wed, Aug 18, 2010 at 11:53:14AM +0200, Johny wrote: I am using a Ctest script to do a continuous build, however I can't seem to find a way to log the output of my make system since when you give ctest_build(BUILD src) it is automatically logged to the build.xml in the Testing

Re: [CMake] ctest: Empty reply from server

2010-08-17 Thread Tyler Roscoe
On Tue, Aug 17, 2010 at 03:35:02PM +0200, Lorenzo Natale wrote: Submit files (using http) Using HTTP submit method Drop site:[..] Error when uploading file: [...]/20100816-2200/Build.xml Error message was: Empty reply from server I agree that CDash doesn't always produce the most

Re: [CMake] Weird ctest behaviour

2010-08-17 Thread Tyler Roscoe
On Tue, Aug 17, 2010 at 05:14:07PM +0200, Johny wrote: I have a ctest script which i am using as a test in my build like this add_test ( ctest -S script.cmake) however once the script finishes executing i get a CMake error saying my CTEST_SOURCE_DIRECTORY, CTEST_BINARY_DIRECTORY and

Re: [CMake] Build tree with common dependency - CMP-0002

2010-08-06 Thread Tyler Roscoe
On Thu, Aug 05, 2010 at 09:26:05PM -0500, Frank Gruman wrote: The problem - dependencies. Each build is supposed to be independent of any other. S: Build Project A-1 Depends on B-1 Depends on C-3 Build Project A-2 Depends on B-3 Depends on C-3 Build

Re: [CMake] How to exclude empty dirs from install

2010-07-22 Thread Tyler Roscoe
On Thu, Jul 22, 2010 at 04:57:50PM +0200, Olaf van der Spek wrote: Why aren't empty dirs excluded by default? Because if they were excluded, we would have someone on the list next month asking why she can't create empty directories with install() commands. tyler

Re: [CMake] different test cases

2010-07-15 Thread Tyler Roscoe
On Thu, Jul 15, 2010 at 03:39:20PM -0500, Jörg F. Unger wrote: I'm using cmake to add a test environment to our project (with ctest). Is there a possibility to generate to groups of test with different tags in the makefile, so that after the generation of the makefiles the user might

Re: [CMake] Copy two files into one file

2010-07-09 Thread Tyler Roscoe
On Fri, Jul 09, 2010 at 06:39:57PM +0200, Bo Thorsen wrote: Does this also work with binary files? From the documentation on FILE, this isn't really clear to me. Why don't you try it and let us know? tyler ___ Powered by www.kitware.com Visit

Re: [CMake] Building a Version Header

2010-07-08 Thread Tyler Roscoe
On Wed, Jul 07, 2010 at 10:43:15PM -0400, John Drescher wrote: On Wed, Jul 7, 2010 at 9:44 PM, Clark Gaebel cg.wowus...@gmail.com wrote: I would like to generate file that looks something like this:    // version.h    #define VERSION v0.1-345-ga77ede8 You want to do that with

Re: [CMake] Different configurations with Visual Studio

2010-07-06 Thread Tyler Roscoe
On Mon, Jul 05, 2010 at 01:31:41PM +0200, Mark Van Peteghem wrote: I see, thanks. I intend to write a Python script that adds the extra platform solution, because we really need that. Visual Studio and Code::Blocks project files are XML files, so it shouldn't be too hard. If possible, I would

Re: [CMake] Different configurations with Visual Studio

2010-07-06 Thread Tyler Roscoe
On Mon, Jul 05, 2010 at 10:47:32AM -0400, John Drescher wrote: What is wrong with different build folders for each compiler / ide? I'm interested in an answer to this question as well. For me, the biggest thing is that it's what VS developers are accustomed to. I've been educating it out of

Re: [CMake] Howto unset cache variable without UNSET()

2010-07-01 Thread Tyler Roscoe
Marcel, Maybe I missed it earlier ITT, but I don't understand why you can't just use if(FOO) instead? tyler On Thu, Jul 01, 2010 at 11:53:33AM +0200, Marcel Loose wrote: Hi Fraser, It doesn't. Well, partly it does, but unfortunately setting FOO to an empty string doesn't make it undefined;

Re: [CMake] Generating a combined x86 and x64 Visual Studio project

2010-07-01 Thread Tyler Roscoe
On Thu, Jul 01, 2010 at 02:18:45PM -0500, Adarr, Lee wrote: After generating a Visual Studio 9 2008 Win64 solution, the solution contains only the x64 build specification. Is it possible to have CMake Yes, this is as designed. add the win32 build specification to the same solution or must

Re: [CMake] Ways of setting CTEST_BUILD_NAME

2010-06-24 Thread Tyler Roscoe
On Thu, Jun 24, 2010 at 03:07:50PM -0400, Convey, Christian J CIV NUWC NWPT wrote: Suppose I want do just use ctest in a dead-simple manner: add a few lines to my CMakeLists.txt files, then run cmake . make test. In this scheme, what's the easiest way I can set CTEST_BUILD_NAME? Simply

Re: [CMake] ADD_CUSTOM_COMMAND split on multiple lines

2010-06-23 Thread Tyler Roscoe
On Wed, Jun 23, 2010 at 03:58:59PM +0200, Aeschbacher, Fabrice wrote: Is there any way to split a custom command on multiple lines (for readability), e.g: ADD_CUSTOM_COMMAND( OUTPUT .patched COMMAND for patch in ${ARGV}; do\ echo applying $patch; \

Re: [CMake] Changing compiler flags generated by cmake

2010-06-22 Thread Tyler Roscoe
On Tue, Jun 22, 2010 at 08:30:43PM -0700, ben scott wrote: I know about the variable to add custom flags for g++, but how do I get rid if unwanted flags? I am writing a program for KDE on Linux and cmake insists on Something like: string(REPLACE -ansi CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})

[CMake] change where package is generated; full name of package with extension

2010-06-18 Thread Tyler Roscoe
1. I want to change where make package deposits the packages it creates. Is there a way to do this -- some cpack variable I haven't found? 2. I want to get a hold of the name (or names) of generated packages. I know the package will be called myproject.some_extension, but how do I calculate

Re: [CMake] change where package is generated; full name of package with extension

2010-06-18 Thread Tyler Roscoe
On Fri, Jun 18, 2010 at 06:30:25PM +0200, Eric Noulard wrote: 2010/6/18 Tyler Roscoe ty...@cryptio.net: 1. I want to change where make package deposits the packages it creates.  Is there a way to do this -- some cpack variable I haven't found? No variable I am aware of. However you may

Re: [CMake] Variable Propagation

2010-06-14 Thread Tyler Roscoe
On Mon, Jun 14, 2010 at 01:40:38PM +0200, Aeschbacher, Fabrice wrote: I need to provide easy adding for source files to the developers, So it would be nice to just have a CMakelists.txt in every subfolder, which then edits the source-variable. Also consider to use properties for

Re: [CMake] Nesting a cmake project

2010-06-07 Thread Tyler Roscoe
On Mon, Jun 07, 2010 at 11:54:12AM -0400, Nathan Huesken wrote: I have a cmake project into which I want to nest another cmake project. The nested cmake project is a complete project working on its own, and the outer cmake project depends on it. So when the outer cmake project is build, the

Re: [CMake] Different configurations for Debug and Release

2010-06-07 Thread Tyler Roscoe
On Mon, Jun 07, 2010 at 02:43:35PM -0300, Felipe Sodré Silva wrote: I need to write a CMakeLists file to generate a VS 2005 project in which I can have different project settings for Debug and Release configurations. For example, I need to have a set_target_properties directive for Release

Re: [CMake] CMake 2.8.1 / Win: Neither if nor else?`

2010-05-21 Thread Tyler Roscoe
On Fri, May 21, 2010 at 02:04:38PM -0700, Torsten Rohlfing wrote: FIND_PACKAGE(ZLIB) IF(ZLIB_FOUND) MESSAGE( WARNING HAVE system zlib ) ELSEIF(ZLIB_FOUND) MESSAGE( WARNING NO system zlib ) ENDIF(ZLIB_FOUND) I don't see an else clause here, just two ifs (that check the same condition).

Re: [CMake] ctest, make test and build config

2010-05-18 Thread Tyler Roscoe
On Tue, May 18, 2010 at 05:37:32PM +1000, ross hennessy wrote: ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}, which as I'm on windows (I don't think this gets set on linux?), evaluates to either ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug or ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Release. So I

Re: [CMake] Binaries not ending up in the RUNTIME_OUTPUT_DIRECTORY

2010-05-17 Thread Tyler Roscoe
You probably need the Prefix Hack: http://www.itk.org/Bug/view.php?id=8243 tyler On Mon, May 17, 2010 at 09:53:34AM -0500, aaron.mead...@thomsonreuters.com wrote: Hi All! I'm trying to migrate an existing Visual Studio 8 2005 source tree to CMake. The only problem I'm having right

Re: [CMake] How does CPACK decide what goes into release packages?

2010-05-17 Thread Tyler Roscoe
On Mon, May 17, 2010 at 12:53:34PM -0500, kent williams wrote: Internally, CPack will use CMake's install mechanism to automatically populate the package. Right. Mostly, all that CPack does is call make install on your project with a special CMAKE_INSTALL_PREFIX. but when I add

Re: [CMake] distribute third party libs with NSIS

2010-05-17 Thread Tyler Roscoe
On Mon, May 17, 2010 at 02:41:21PM -0400, Michaël Presseau wrote: Hi, I have an application and I need to create an installer. I use CPack with NSIS. For now, I'm using : find_package(Boost COMPONENTS thread date_time filesystem REQUIRED) This give me le .lib associate to the dll file. This

Re: [CMake] How to install library in a sub-directory matching the active visual studio configuration?

2010-05-15 Thread Tyler Roscoe
On Sat, May 15, 2010 at 05:53:45PM +0200, Baptiste Lepilleur wrote: I initially tried using the variable ${CMAKE_BUILD_TYPE} but it seems to always expand to a blank string, and the doc imply that it does not work with Visual Studio solution as it has multiple configurations. So I switched

Re: [CMake] depend on install target?

2010-05-14 Thread Tyler Roscoe
On Fri, May 14, 2010 at 01:41:22PM -0500, Kevin Burge wrote: I'd like to add a setup target that depends on install so I can just do make setup. Does anyone have a work around while we wait on http://public.kitware.com/Bug/view.php?id=8438? You could write a custom_target my_install that

Re: [CMake] Unit tests, but not CTest

2010-05-10 Thread Tyler Roscoe
Let's keep this on the list in case it helps someone else. On Fri, May 07, 2010 at 10:27:16PM +0100, Magnus Therning wrote: On 07/05/10 17:24, Tyler Roscoe wrote: On Fri, May 07, 2010 at 04:41:23PM +0100, Magnus Therning wrote: add_custom_command (TARGET ${PROJECT_NAME

Re: [CMake] Unit tests, but not CTest

2010-05-07 Thread Tyler Roscoe
On Fri, May 07, 2010 at 04:41:23PM +0100, Magnus Therning wrote:        add_custom_command (TARGET ${PROJECT_NAME}            POST_BUILD            # Call the runner script directly. By doing it this way, all the            # unit tests in the executable run at once. If we call CTest    

[CMake] python DeprecationWarning marked as error

2010-05-07 Thread Tyler Roscoe
I just posted this to the CDash mailing list. Julien pointed out that this is actually a CTest problem (since CTest writes the XML saying what warnings happened during the build) and suggested I repost over here. I have the following warning in my project build:

Re: [CMake] Cannot find UpdateCommand or GITCommand configuration key.

2010-05-07 Thread Tyler Roscoe
On Fri, May 07, 2010 at 05:10:59PM -0400, Bill Lorensen wrote: I get the subject message. I have defined set( CTEST_GIT_COMMAND git ) SET(UPDATE_COMMAND ${GITCOMMAND}) SET(UPDATE_OPTIONS ${GIT_UPDATE_OPTIONS}) Did you try CTEST_UPDATE_COMMAND and CTEST_UPDATE_OPTIONS? Are you sure

Re: [CMake] Why is this custom command run twice?

2010-04-30 Thread Tyler Roscoe
On Fri, Apr 30, 2010 at 12:03:12PM -0400, Brad King wrote: Unfortunately this can't be fixed upstream without breaking the legacy extension-finding feature. Isn't this what CMake policies are for? Or is the offending code buried in some dark corner where policies won't help? tyler

Re: [CMake] Unit tests, but not CTest

2010-04-27 Thread Tyler Roscoe
On Tue, Apr 27, 2010 at 02:47:18PM +0100, Magnus Therning wrote: Except of course that it will take away one of the things I *really* want, which is that all unit tests are run every time I compile. We run our unit tests with a python wrapper script that does some environment configuration

Re: [CMake] Unit tests, but not CTest

2010-04-23 Thread Tyler Roscoe
On Fri, Apr 23, 2010 at 04:24:06PM +0100, Magnus Therning wrote: A project that I'm currently trying to convert over to CMake has several unit tests written as standalone executables. Are there any examples around for integrating the running of such tests as part of the build in CMake?

Re: [CMake] Correct syntax for CPACK_NSIS_CREATE_ICONS

2010-04-13 Thread Tyler Roscoe
On Tue, Apr 13, 2010 at 12:39:13PM +0200, Yegor Yefremov wrote: With this expression set(CPACK_NSIS_CREATE_ICONS CreateShortCut \$SMPROGRAMS\\$STARTMENU_FOLDER\\${PROJECT_NAME}.lnk \$INSTDIR\\${PROJECT_NAME}.exe) I can successfully create a package, but cmake/cpack shows a warning like

Re: [CMake] error using ctest_configure in a ctest script

2010-04-12 Thread Tyler Roscoe
On Mon, Apr 12, 2010 at 12:11:54PM -0400, Zou, Di (Cont, ARL/CISD) wrote: I have this line in my ctest script: ctest_configure(OPTIONS -C ~/NetDMF_CMake_Config) At the dashboard, this is the error I get: Build Name:build-linux-c++ Configure

Re: [CMake] error using ctest_configure in a ctest script

2010-04-12 Thread Tyler Roscoe
On Mon, Apr 12, 2010 at 01:15:11PM -0400, Zou, Di (Cont, ARL/CISD) wrote: I replaced: ctest_configure(OPTIONS -C ~/NetDMF_CMake_Config) with: ctest_configure(OPTIONS -C $ENV{HOME}/NetDMF_CMake_Config) I get the same error: Configure Command:/usr/cta/CSE/Release/cmake-2.8.0.5/bin/cmake -C

Re: [CMake] CPack, TGZ and directory layout

2010-04-09 Thread Tyler Roscoe
On Fri, Apr 09, 2010 at 08:53:27PM +0200, Alexander Neundorf wrote: set (CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0) Is this documented somewhere ? If not, can you please put it in the wiki (e.g. in This finally motivated me to create an account for the kitware wiki. Thanks Alex :). I added an

Re: [CMake] CPack, TGZ and directory layout

2010-04-02 Thread Tyler Roscoe
On Fri, Apr 02, 2010 at 09:50:59PM +0200, Allan W. Nielsen wrote: The result of this the the following file: TEST-0.1.1-Linux/bin/test What I would like to achieve is that the directory layout of the generated tar file is: /bin/test or maby bin/test Look at: set

Re: [CMake] CMake has moved to Git!

2010-03-29 Thread Tyler Roscoe
On Fri, Mar 26, 2010 at 05:20:21PM -0500, Richard Wackerbarth wrote: Now that the setup scripting is more complex, I'm trying to use your cmake_common.cmake script for my CMake submissions. Tracking changes to that script would be much easier for me if you have it published in a publicly

Re: [CMake] Testing with CMake--issue of subdirs

2010-03-23 Thread Tyler Roscoe
On Tue, Mar 23, 2010 at 02:43:45PM +0530, Kiran Gopal Patil wrote: I do have the CMakeLists.txt for the main and sub1,2,3 are added in it which inturn add sub11,22,33 I want to do make test for full project at directory main. In addition to this I want to do make test for sub11,22,33

Re: [CMake] Handling library dependencies and minimizing duplicated include_directories

2010-03-23 Thread Tyler Roscoe
On Mon, Mar 22, 2010 at 05:47:15PM -0700, aaron_wri...@selinc.com wrote: So... no easy answer for this? The only reason I bring this up is that I've looked at the cmake version of boost, and it requires a library of several cmake files full of macros and functions that help get their

Re: [CMake] Question about Nightly Builds

2010-03-23 Thread Tyler Roscoe
On Tue, Mar 23, 2010 at 04:50:54PM -0300, Felipe Sodre dos Santos wrote: Last night my nightly build broke, and after making some changes in the code and submitting to SVN server, it works for the experimental build. However, when I try the Nightly one again, it breaks exactly the same way as

Re: [CMake] Fwd: Bug ? Or I'm doing something wrong ?

2010-03-22 Thread Tyler Roscoe
On Mon, Mar 22, 2010 at 11:51:51AM -0400, David Cole wrote: Never use rebuild all with a cmake generated *.sln file... Just use Build Solution... Interesting. David, can you elaborate? tyler ___ Powered by www.kitware.com Visit other Kitware

Re: [CMake] CMake Visual Studio 2005 and DLLs

2010-03-22 Thread Tyler Roscoe
On Sat, Mar 20, 2010 at 07:30:36PM +0100, Theodore Papadopoulo wrote: All the tests (in the test directory) that use the DLL in the src directory fail at runtime because they do not find the dll... I suspect this is because of a different directory. All the examples I have found use the same

[CMake] integrating with installshield

2010-03-22 Thread Tyler Roscoe
I have a lot of complaints about Installshield, but I'll spare you the whinging and just say that I need to generate Installshield setups at the end of our CMake build. I am considering some options and was wondering if anyone else has experience with this. Currently, our build process is driven

Re: [CMake] CTEST_UPDATE_COMMAND vs sparse working copy (was Re: continuous integration with CMake)

2010-03-22 Thread Tyler Roscoe
Following up on this thread: http://public.kitware.com/pipermail/cmake/2010-February/035197.html It's not as elegant as I would like -- support for ctest_update(... APPEND ...) would be much cleaner, but I didn't have the bandwidth to take on that project at this time -- but I believe I have a

Re: [CMake] CTest script doesn't checkout the head revision

2010-03-19 Thread Tyler Roscoe
On Fri, Mar 19, 2010 at 10:08:39AM -0300, Felipe Sodre dos Santos wrote: SET (CTEST_UPDATE_COMMAND svn) SET (REPO_USERNAME nightly_builder) SET (REPO_PASSWORD nightly_builder_pass) SET (REPO https://myrepo/svn/myproject/trunk) SET (CTEST_CVS_CHECKOUT svn co ${REPO} --username ${REPO_USERNAME}

[CMake] bad redirect in wiki

2010-03-18 Thread Tyler Roscoe
This page: http://www.cmake.org/Wiki/CPack:Generator_Information redirects to a page called: VTK/Tutorials/PythonEnvironmentSetup which AFAICT has nothing at all to do with CPack generators. The topics are so different that I can't even guess what someone was trying to accomplish by enacting

Re: [CMake] Linking external static libraries into dlls

2010-03-04 Thread Tyler Roscoe
On Thu, Mar 04, 2010 at 06:30:02PM +0100, Christoph Höger wrote: I am currently trying to link a DLL with the netcdf_c++ static library in the hope I will not have to redistribute netcdf itself. (I thought the DLL could contain the needed code itself). This should work. Be careful, though. I

Re: [CMake] Watcom Support

2010-03-04 Thread Tyler Roscoe
On Wed, Mar 03, 2010 at 09:55:39AM -0800, J Decker wrote: OKay these should work great, but have to be done on a per-target basis, rather than being built into the generator. How would the ...\share\cmake-2.8\Modules\Platform\Windows-wcl386.cmake get modified to set link_flags? I would write

Re: [CMake] How to add file dependencies to a target?

2010-03-04 Thread Tyler Roscoe
On Thu, Mar 04, 2010 at 11:50:14AM -0800, aaron_wri...@selinc.com wrote: For example, this doesn't work: ADD_EXECUTABLE(foo ${foo_SOURCES} ${foo_HEADERS}) ADD_CUSTOM_COMMAND( OUTPUT ${PROJECT_BINARY_DIR}/bar.ini COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/bar.ini

Re: [CMake] windows link error

2010-03-04 Thread Tyler Roscoe
On Thu, Mar 04, 2010 at 06:19:03PM -0500, Simmons, Aaron wrote: Thanks-- the cmake cache is where the trouble is: CMAKE_LINKER:FILEPATH=C:/strawberry/c/bin/ld.exe I'm not sure where the bug is (if there is one). Should re-running cmake recreate the cache? Why does the presence of

Re: [CMake] combining cmake and qmake

2010-03-03 Thread Tyler Roscoe
On Wed, Mar 03, 2010 at 11:01:14AM -0500, Hicham Mouline wrote: Qt comes with qmake which takes .pro files as input and also generates Makefiles or vs2008 solution files. Is there a generally advised policy re combining systems with both cmake and qmake? Take a look at CMake's FindQt4

Re: [CMake] file (GLOB) on linux with CMake 2.8

2010-03-01 Thread Tyler Roscoe
On Mon, Mar 01, 2010 at 09:21:36AM -0600, Ryan Pavlik wrote: any case, you probably don't want to do this. Instead, do an ls in Agree with this. your directory to get a list of files, and do a set(SOURCES) command and paste your file list in, or some similar technique. See this link for

Re: [CMake] Watcom Support

2010-03-01 Thread Tyler Roscoe
Don't know about the watcom stuff but as for this: On Mon, Mar 01, 2010 at 07:03:14PM -0800, J Decker wrote: Is there really only a set of CMAKE_C_FLAGS_ and _CXX_FLAGS_? no companion _LD_FLAGS_ ? Properties rather than global variables but is this what you mean?

Re: [CMake] Adding a generated source to all multiple targets

2010-02-25 Thread Tyler Roscoe
On Wed, Feb 24, 2010 at 07:23:55PM -0600, Oliver kfsone Smith wrote: Ok - I just wanted to make sure there wasn't some built-in way of doing it before I plowed ahead with that :) Nope. Writing your own wrapper for add_* commands seems to be a pretty common practice. making all the config

Re: [CMake] Include subdirectories

2010-02-25 Thread Tyler Roscoe
On Thu, Feb 25, 2010 at 09:56:24PM +0100, Christian Werner wrote: I am sure this has been asked before, but somehow I don't find a place where I can easily browse the mailing list postings (I just found that link where you can browse isolated months). I am writing plugins for Yeah I just

Re: [CMake] Adding a generated source to all multiple targets

2010-02-24 Thread Tyler Roscoe
On Wed, Feb 24, 2010 at 05:17:27PM -0600, Oliver kfsone Smith wrote: That's half the problem solved -- the bulk of the post was, though: I want to automatically generate one of these per-target, so that the tolua runs with per-target compiler switches, and so that the resulting .cc file is

Re: [CMake] Regular Expression to filter out C/C++ Comments

2010-02-22 Thread Tyler Roscoe
On Mon, Feb 22, 2010 at 04:28:54PM +0100, Andreas Lubensky wrote: i'm having some trouble building a regular expression to filter out C and C++ style comments (//... /*...*/). I constructed various regular ((/\\*([^\\*]|(\\*+([^\\*/])))*\\*+/)|(//[^\r\n]*)) I don't think RE are the right

  1   2   3   4   5   >