Re: [CMake] adding a custom command with the file name as a target

2011-03-11 Thread David Cole
On Fri, Mar 11, 2011 at 12:05 PM, Jim Newsome jnews...@cmu.edu wrote: Unfortunately it seems that the target needs to have a different name from its dependencies. When building I get: make[2]: Circular CMakeFiles/hello.bin - hello.bin dependency dropped. Another workaround I thought of is to

Re: [CMake] Eclipse generator - scanner-discovered include paths and pre-processor symbols

2011-03-11 Thread David Cole
On Fri, Mar 11, 2011 at 2:10 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Friday 11 March 2011, Chatterjee, Shash wrote: Hi, Using CDT-2.8.2 on Fedora Core 14, and Eclipse Indigo/CDT (20101216-1529). Most everything works fine in the .project/.cproject, except the CDT indexer

Re: [CMake] Selecting INSTALL target in Visual Studio Configuration by default

2011-03-14 Thread David Cole
Do you mean: (1) selected by default as the startup project when opening the solution in Visual Studio? or (2) included in the Build Solution command, executing after all other targets have been built, so that F7 or Build All will actually build the INSTALL target? On Mon, Mar 14, 2011 at

Re: [CMake] Selecting INSTALL target in Visual Studio Configuration by default

2011-03-14 Thread David Cole
On Mon, Mar 14, 2011 at 10:16 AM, Paul Baumer paul.baum...@googlemail.com wrote: Sorry for not being clear enough. I meant (2). (2) included in the Build Solution command, executing after all other targets have been built, so that F7 or Build All will actually build the INSTALL target? In

Re: [CMake] INSTALL CODE using EXEC_PROGRAM with spaces in path

2011-03-14 Thread David Cole
in an endless loop. Only a timeout could break it. Can you confirm that? -Ursprüngliche Nachricht- Von: David Cole [mailto:david.c...@kitware.com] Gesendet: Freitag, 11. März 2011 16:50 An: Tyler Cc: Urbach, Marcel [Rohmann GmbH]; cmake@cmake.org Betreff: Re: [CMake] INSTALL CODE using

Re: [CMake] add_test WORKING_DIRECTORY option

2011-03-14 Thread David Cole
What is the cwd when your test starts? It should be ${Bwr_Dir} according to your email's WORKING_DIRECTORY arg. (write a little code that prints it out right at the top of the program's main before doing anything else...) What version of ctest is this? (I assume 2.8.4?) always cd to the

Re: [CMake] add_test WORKING_DIRECTORY option

2011-03-15 Thread David Cole
On Mon, Mar 14, 2011 at 6:54 PM, Belcourt, Kenneth kbe...@sandia.gov wrote: On Mar 14, 2011, at 4:19 PM, Belcourt, Kenneth wrote: Hi David, Oops, busted.  The modules I loaded inserted an older version of CMake, v2.8.1.  When I run with my local copy of CMake 2.8.4, the error goes away.

Re: [CMake] INSTALL CODE using EXEC_PROGRAM with spaces in path

2011-03-15 Thread David Cole
for file name or dir name when using regsvr32 INPUT_FILE $TARGET_FILE_NAME:${project_name} WORKING_DIRECTORY $TARGET_FILE_DIR:${project_name} -Ursprüngliche Nachricht- Von: David Cole [mailto:david.c...@kitware.com] Gesendet: Montag, 14. März 2011 17:17 An: Urbach, Marcel [Rohmann

Re: [CMake] avoid substitution of semicolon

2011-03-15 Thread David Cole
What are you going to do with it once it's in the value ARCH or x? It's hard to see the literal contents of a cmake variable without using in the message command. This code: set(x -DCMAKE_OSX_ARCHITECTURES=i386\\;x86_64) message(${x}) produces this output:

Re: [CMake] File remove_recurse doesn't on OSX

2011-03-16 Thread David Cole
On Wed, Mar 16, 2011 at 1:40 PM, Belcourt, Kenneth kbe...@sandia.gov wrote: Hi, A quick bug report with CMake 2.8.4 on OSX 10.5.8 built with Intel 11.0.064.  This command works fine file(REMOVE ${Bwr_Files}) while this one fails. file(REMOVE_RECURSE ${Bwr_Files}) And by fails I mean it

Re: [CMake] INSTALL CODE using EXEC_PROGRAM with spaces in path

2011-03-17 Thread David Cole
name for installing the dll because it differs from debug to release build. When the debug configuration was selected the debug dll should be installed and registered and vice versa for release. Do you have any ideas to solve this? -Ursprüngliche Nachricht- Von: David Cole

Re: [CMake] Path to current Visual Studio installation

2011-03-17 Thread David Cole
I haven't found a super-easy, completely reliable way to do this for all versions of Visual Studio. But here's some data for you... If it's set, for VS9 and earlier, CMAKE_MAKE_PROGRAM will point to the full path of devenv.com:

Re: [CMake] Warning! PATH too long installer unable to modify PATH!

2011-03-17 Thread David Cole
On the contrary: as you can see by the number of bugs related to this one's duplicate [ http://public.kitware.com/Bug/view.php?id=10257 ] and by the number of people participating in those discussions, it is quite common for people to encounter this problem. See all the notes in the bug and its

Re: [CMake] Set Source Property For Specific Target

2011-03-17 Thread David Cole
There is a very old, long-standing open bug (in the backlog now) that outlines many of the issues related to supporting pre-compiled headers. http://public.kitware.com/Bug/view.php?id=1260 Doing a copy and rename strategy for StdAfx.cpp is a reasonable work-around until such time as this can

Re: [CMake] How to USE_FOLDERS correctly?

2011-03-18 Thread David Cole
On Fri, Mar 18, 2011 at 1:15 PM, Oliver Buchtala oliver.bucht...@jku.at wrote: Hello, I have problems using the project folder feature described in the documentation for CMake 2.8.4 (http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_global:USE_FOLDERS) The very first command in my

Re: [CMake] Documentation for CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT missing?

2011-03-21 Thread David Cole
On Mon, Mar 21, 2011 at 6:16 AM, Johannes Zarl johannes.z...@jku.at wrote: On 03/07/2011 at 23:47, Gabriel Petrovay gabipetro...@gmail.com wrote: On Mon, Mar 7, 2011 at 7:03 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: It's an internal variable. May we use it? Or is it not

Re: [CMake] Platform tests counts as errors.

2011-03-22 Thread David Cole
Have you considered using the ExternalProject module for custom commands like this? It already takes care of some tricky things like this. In CMake 2.8.4, you'll see occurrences of this in ExternalProject.cmake: set(ENV{VS_UNICODE_OUTPUT} \\) (which gets generated inside of scripts run at build

Re: [CMake] Platform tests counts as errors.

2011-03-22 Thread David Cole
) On Tue, Mar 22, 2011 at 12:07 PM, David Cole david.c...@kitware.com wrote: Have you considered using the ExternalProject module for custom commands like this? It already takes care of some tricky things like this. In CMake 2.8.4, you'll see occurrences of this in ExternalProject.cmake: set(ENV

Re: [CMake] Platform tests counts as errors.

2011-03-22 Thread David Cole
at 3:45 PM, Óscar Fuentes o...@wanadoo.es wrote: Hello David. David Cole david.c...@kitware.com writes: Oh, one more thing... in order to activate that suppress output in VS chunk of code, you have to turn on the logging feature of ExternalProject. include(ExternalProject

Re: [CMake] make clean and external projects

2011-03-24 Thread David Cole
On Thu, Mar 24, 2011 at 9:05 AM, Tomasz Grobelny tom...@grobelny.oswiecenia.net wrote: Is it possible to configure cmake in such a way that make clean command executed in root directory of my project also cleans external projects? -- Regards, Tomasz Grobelny

Re: [CMake] Generator vor Intel compliler on Windows

2011-03-25 Thread David Cole
This should work, from an nmake command prompt: mkdir build cd build set CC=C:/path/to/icl.exe set CXX=C:/path/to/icl.exe cmake -G NMake Makefiles ..\src On Fri, Mar 25, 2011 at 1:02 PM, Andreas Fabri andreas.fa...@geometryfactory.com wrote: Hello, Is there a generator for nmake and

Re: [CMake] New warnings in CMake 2.8.4-rc2

2011-03-28 Thread David Cole
See the cmake command line help for: --no-warn-unused-cli= Don't warn about command line options. I would just add --no-warn-unused-cli to the ExternalProject_Add calls and require CMake 2.8.4. (There is no ExternalProject_Add in CMake 2.6...) On Sat, Mar 26, 2011 at 9:22 AM, Johnson,

Re: [CMake] How to add dependencies to ExternalProject_Add()

2011-03-28 Thread David Cole
On Mon, Mar 28, 2011 at 10:48 AM, Rolf Eike Beer e...@sf-mail.de wrote: I came up with this simple diff which makes everything work smoothly for me: This also works for me and should properly detect if the dependency is itself an external target or not: diff --git

[CMake] Bug fix requests for the *next* release of CMake...

2011-03-29 Thread David Cole
-- we will be looking at the mailing list and activity in the bug tracker to help prioritize the bug fixes that will occur over the next 4 weeks. Thanks, David Cole Kitware, Inc. P.S. - as a nice summary of what we accomplished in the CMake 2.8.4 release, see here: http://public.kitware.com/Bug

Re: [CMake] List of possible completion values

2011-03-30 Thread David Cole
On Wed, Mar 30, 2011 at 11:56 AM, Michael Wild them...@gmail.com wrote: On 03/30/2011 05:52 PM, Tim Gallagher wrote: Hi, Is there a way (and if not, how do I submit a feature request) to have a set of drop-down type options in the ccmake interface? The obvious example is for

Re: [CMake] find library for static libraries

2011-03-31 Thread David Cole
Does: find_library( MY_LIB libthelibrary.a PATHS ... ) work? On Thu, Mar 31, 2011 at 11:38 AM, Robert Bielik robert.bie...@xponaut.sewrote: I'm trying to use find_library to find static (.a) libraries on Mac OS X (cmake 2.8.1). In a lib path I have f.i.:

Re: [CMake] BundleUtilities Error between 2.8.3 and 2.8.4

2011-03-31 Thread David Cole
On Thu, Mar 31, 2011 at 8:29 AM, Michael Jackson mike.jack...@bluequartz.net wrote: So things did majorly change between the two versions. My questions are now 1) How do I fixup an executable that is NOT an application bundle and 2) Do I now need to supply my own copy rules for things like Qt

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-03-31 Thread David Cole
On Thu, Mar 31, 2011 at 6:05 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 3/31/2011 4:19 PM, Chris Scharver wrote: EXTERNAL_OBJECT not linked using Visual Studio 2010 http://public.kitware.com/Bug/view.php?id=11891 Thanks for the pointer to that bug. It even has a fix. The thing I

Re: [CMake] ExternalProject breaks a parallel make.

2011-04-02 Thread David Cole
Try with CMake 2.8.4 -- we fixed some parallel make propagation issues in 2.8.3 or 2.8.4... Using $(MAKE) now. Should avoid the problem you're reporting here. On Saturday, April 2, 2011, Andrey Nikitin andrey.d.niki...@gmail.com wrote: Hi. I have problem with make -jN and Cmake

Re: [CMake] How to make the installation less verbose?

2011-04-04 Thread David Cole
You didn't miss anything. The code that does this looks like this in Source/cmFileCommand.cxx: std::string message = (copy? Installing: : Up-to-date: ); message += toFile; this-Makefile-DisplayStatus(message.c_str(), -1); As you can see, it's unconditional, and is always printed as

Re: [CMake] problems with CMAKE_CFG_INTDIR in initial cache

2011-04-05 Thread David Cole
On Tuesday, April 5, 2011, Dominik Szczerba domi...@itis.ethz.ch wrote: On Tue, Apr 5, 2011 at 6:54 AM, Micha Renner micha.ren...@t-online.de wrote: Am Montag, den 04.04.2011, 21:22 +0200 schrieb Dominik Szczerba: CMAKE_CFG_INTDIR This value is evaluated by the native build system - this

Re: [CMake] Overriding Win-Registry search in UseJNI.cmake

2011-04-05 Thread David Cole
On Tue, Apr 5, 2011 at 7:16 AM, Oliver Buchtala oliver.bucht...@jku.atwrote: Am 05.04.2011 13:12, schrieb Oliver Buchtala: Hello, I am working with CMake 2.8 and using UseJNI.cmake I have a JDK installed locally (registered in Win-Registry) but want to configure a project to use a

Re: [CMake] Valgrind and CDash

2011-04-11 Thread David Cole
On the CMake dashboard itself, we are running valgrind dashboards, too. One with ctest 2.8.1.20100608-g32b96. Then I set up identical dashboards, but using ctest 2.8.3 and ctest 2.8.4 after you reported this last month. They've been reporting just fine with all versions of ctest. Perhaps you

Re: [CMake] Properly Detecting Win64

2011-04-12 Thread David Cole
On Tue, Apr 12, 2011 at 4:07 PM, James Bigler jamesbig...@gmail.com wrote: On Tue, Apr 12, 2011 at 1:27 PM, j s j.s4...@gmail.com wrote: On Tue, Apr 12, 2011 at 2:13 PM, James Bigler jamesbig...@gmail.comwrote: On Mon, Jan 17, 2011 at 11:27 AM, Michael Jackson mike.jack...@bluequartz.net

Re: [CMake] Confusing problem with building VTK via external project

2011-04-13 Thread David Cole
On Wed, Apr 13, 2011 at 11:04 AM, kent williams nkwmailingli...@gmail.comwrote: I've all of a sudden started having trouble building VTK via an ExternalProject. OS X, CMake 2.8.4, Standard GCC 4.2 compilers, stock VTK 5.6.1. output of make VERBOSE=1 of the top-level project, you can see

Re: [CMake] rebuild

2011-04-18 Thread David Cole
The 3rd party libs should not be rebuilding if there are no source files changing... We do this all the time around here, and I have not heard anybody else complaining about this problem. Is your project publicly available so that we may try to reproduce this behavior here...? On Fri, Apr 15,

Re: [CMake] Post-Build commands on custom targets are always executed?

2011-04-19 Thread David Cole
On Mon, Apr 18, 2011 at 11:22 PM, Michael Hertling mhertl...@online.dewrote: On 04/19/2011 02:17 AM, Oliver Buchtala wrote: Am 18.04.2011 06:58, schrieb Michael Hertling: On 04/16/2011 12:05 AM, Oliver Buchtala wrote: Am 15.04.2011 23:48, schrieb Michael Hertling: On 04/15/2011 11:22 PM,

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread David Cole
On Tue, Apr 19, 2011 at 5:44 PM, James Bigler jamesbig...@gmail.com wrote: On Tue, Apr 12, 2011 at 2:24 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 4/12/2011 4:13 PM, David Cole wrote: Does somebody have reproducible steps to get to the point where CMAKE_SIZEOF_VOID_P disappears

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread David Cole
The error message tells you what to do: * Install or copy the item into the bundle before calling fixup_bundle* That means that libplugin.so must be underneath /tmp/example/main.app before you call fixup_bundle. (Because it's a plugin, it will not appear in any file's otool -L output, so it has

Re: [CMake] Changing compiler

2011-04-20 Thread David Cole
If you are setting the CXX compiler, you should also probably be setting the C compiler. I always use environment variables to do this: export CC=/home/doriad/src/gcc-4.5.2/bin/gcc/gcc export CXX=/home/doriad/src/gcc-4.5.2/bin/gcc/g++ ccmake ../../src/ITK If that still doesn't work, then

Re: [CMake] Changing compiler

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 9:43 AM, David Doria daviddo...@gmail.com wrote: On Wed, Apr 20, 2011 at 9:04 AM, David Cole david.c...@kitware.com wrote: If you are setting the CXX compiler, you should also probably be setting the C compiler. I always use environment variables to do

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread David Cole
${EXAMPLE_INSTALL_PLUGIN_LIB_DIR} COMPONENT Development ) On Wed, Apr 20, 2011 at 6:30 PM, David Cole david.c...@kitware.com wrote: The error message tells you what to do: Install or copy the item into the bundle before calling fixup_bundle That means that libplugin.so must

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 11:17 AM, Michael Jackson mike.jack...@bluequartz.net wrote: On Apr 20, 2011, at 10:55 AM, David Cole wrote: What is wrong with that one ? Nothing is wrong with it, but there is no link from the app to the plugin, so fixup_bundle cannot determine that it's

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread David Cole
Dayton, Ohio On Apr 20, 2011, at 11:25 AM, David Cole wrote: On Wed, Apr 20, 2011 at 11:17 AM, Michael Jackson mike.jack...@bluequartz.net wrote: On Apr 20, 2011, at 10:55 AM, David Cole wrote: What is wrong with that one ? Nothing is wrong with it, but there is no link

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread David Cole
} MATCHES 4) ENDIF (${CMAKE_SIZEOF_VOID_P} MATCHES 4) ENDIF (WIN32) in my files. Juan On Wed, Apr 20, 2011 at 9:24 AM, Michael Jackson mike.jack...@bluequartz.net wrote: On Apr 20, 2011, at 8:55 AM, David Cole wrote: On Tue, Apr 19, 2011 at 5:44 PM, James Bigler jamesbig

Re: [CMake] sequence of cmake external project

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 12:52 PM, Yu, Daphne (SCR US) daphne...@siemens.com wrote: Hello cmake users, I’m wondering if someone can clarify the sequence commands of CMake external project for me. For example, I have 2 external projects as below: ExternalProject_Add(A PREFIX A

Re: [CMake] Properly Detecting Win64 - [Semi Off Topic Reply]

2011-04-20 Thread David Cole
, 2011, at 12:23 PM, David Cole wrote: In my opinion, blowing away everything except for the CMakeCache.txt file is asking for trouble, and puts you in an invalid (or at the very least, unexpected) state. Because some of the cached values may depend on some of the stuff that was just blown

Re: [CMake] parallel ctest spawning too many threads

2011-04-21 Thread David Cole
This is the first I've ever heard of it... Cool bug! (that was just a wee bit of sarcasm accompanied by a wry smile...) What version of ctest? Is this a project that is publicly available, so that I can try to reproduce it here and help these innocent coders...? Thanks, David On Wed, Apr

Re: [CMake] Changing compiler

2011-04-21 Thread David Cole
On Thu, Apr 21, 2011 at 7:47 AM, David Doria daviddo...@gmail.com wrote: Sounds like you must have gotten errors when you built gcc... Pore through the log of what happened during the gcc build maybe? Are you building gcc from source, or using some package manager to build it for you?

Re: [CMake] SuperBuild whoes

2011-04-21 Thread David Cole
On Thu, Apr 21, 2011 at 4:30 AM, Michael Wild them...@gmail.com wrote: On 04/21/2011 06:48 AM, Michael Wild wrote: Hi all I'm trying to set up a SuperBuild here. Everything works nicely the first time round I build the project. The only real problem I have is that if I change the

Re: [CMake] Problems using add_custom_command and perl

2011-04-21 Thread David Cole
On Thu, Apr 21, 2011 at 9:48 AM, Maxime Lecourt maxime.leco...@gmail.comwrote: Hi, I'm currently trying to use add_custom_command, but I do not get any output (it's working fine in other projects, with Bison and Flex). Basically, I have a CMakeLists.txt file with

Re: [CMake] parallel ctest spawning too many threads

2011-04-21 Thread David Cole
. Once that is done, I will post it. % ctest --version ctest version 2.8.4 -kt** *From:* David Cole [mailto:david.c...@kitware.com] *Sent:* Thursday, April 21, 2011 6:34 AM *To:* k...@lanl.gov *Cc:* cmake@cmake.org *Subject:* Re: [CMake] parallel ctest spawning too many threads

Re: [CMake] How to use PNG instead of BMP for NSIS installer generator?

2011-04-25 Thread David Cole
Have you tried it? What were the results? This is more of a question for the NSIS community, I think. On Sat, Apr 23, 2011 at 12:06 PM, NoRulez noru...@me.com wrote: Hello, is it possible to use *.PNG images instead of the BMP images for header/sidebar? Thanks in advance Best

Re: [CMake] Triggering individual steps of externalproject_add add cmake time

2011-04-28 Thread David Cole
I would strongly encourage you to allow the download to occur at build time using ExternalProject_Add. There's no need to make the configure step of CMake wait for a download. There is no way to execute the custom command steps of an ExternalProject at cmake configure time... If you really want

Re: [CMake] CDash Dynamic Analysis

2011-05-02 Thread David Cole
On Thu, Apr 21, 2011 at 2:54 AM, mika.raj...@patria.fi wrote: Hi I went for the custom DynamicAnalysis.xml thing I think I figured out what the file should contain. There is a slight problem however. The Labels in the defect list of CDash are that of some other tool How do I change

Re: [CMake] CDash Dynamic Analysis

2011-05-02 Thread David Cole
On Thu, Apr 28, 2011 at 12:49 AM, mika.raj...@patria.fi wrote: Hi Another update and a question I'v reverse engineered and hacked the CDash/CMake/CTest code a bit to see how it works. I'v now come to the conclusion that the best way to handle custom tools (style checks, static code

Re: [CMake] CDash Dynamic Analysis

2011-05-02 Thread David Cole
. Hope this is helpful, David Cole On Mon, May 2, 2011 at 2:49 AM, mika.raj...@patria.fi wrote: Hi Am I asking my questions in the wrong place? Is my question stupid and/or I should find answers from documentation / internet? -mika From:mika.raj...@patria.fi To:mika.raj

Re: [CMake] cmake not found

2011-05-02 Thread David Cole
Looks to me like you're using the cygwin cmake. Use the native Windows cmake instead for generating with the MSYS Makefiles generator. They differ in how they treat paths to file names. On Fri, Apr 29, 2011 at 9:01 PM, David Henderson dnadav...@yahoo.comwrote: I'm having trouble compiling a

Re: [CMake] MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcr100.dll

2011-05-02 Thread David Cole
Does the same thing happen with a nightly build of CMake? (downloaded from Kitware, or based on 'master' or 'next'...?) Try with a recent nightly build and see if you get the same thing, please. http://cmake.org/files/dev/?C=M;O=D Thanks, David On Mon, May 2, 2011 at 10:21 AM, Mathieu

Re: [CMake] Documentation suggestion

2011-05-02 Thread David Cole
Good suggestion. We've also thought of that idea... Here's what we need to implement it: Do you have a good suggestion for how to represent links in the source code such that we can generated such linked documentation? If it was easy, we would have done it already... If you do have a

Re: [CMake] MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcr100.dll

2011-05-02 Thread David Cole
call first): CMakeLists.txt:562 (INCLUDE) ... This is a Visual Studio Express C++ 2010 (English) installation. Thanks On Mon, May 2, 2011 at 4:30 PM, David Cole david.c...@kitware.com wrote: Does the same thing happen with a nightly build of CMake? (downloaded from Kitware, or based

Re: [CMake] Documentation suggestion

2011-05-02 Thread David Cole
On Mon, May 2, 2011 at 10:51 AM, David Doria daviddo...@gmail.com wrote: what about Doxyen[1]? Kind regards, Benjamin What do you think Dave C? As a side-effect it would then look like other Kitware based projects (ITK, VTK etc) which all use Doxygen. David I think that would be a

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread David Cole
If it's supposed to be one test from ctest's point of view, you should write a script that makes 2 execute_process calls, and run the script as the add_test command. On Mon, May 2, 2011 at 1:25 PM, Tyler ty...@cryptio.net wrote: I believe tests can have dependencies. Failing that, you can use

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread David Cole
copy instead. The NAME/COMMAND signature of add_test is only available in 2.8 and later, though. HTH, David On Mon, May 2, 2011 at 1:41 PM, David Doria daviddo...@gmail.com wrote: On Mon, May 2, 2011 at 1:31 PM, David Cole david.c...@kitware.com wrote: If it's supposed to be one test from

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread David Cole
execute_process requires the COMMAND keyword. http://cmake.org/cmake/help/cmake-2-8-docs.html#command:execute_process I think you should start looking around a little harder for some examples and documentation before asking more about how do I run a cmake script on this list. Thanks, David

Re: [CMake] cmake not found

2011-05-03 Thread David Cole
a search for cmake.exe and the only one available is the one in the cmake installation. I have version 2.8.4 installed. Thanks!! Dave H -- *From:* David Cole david.c...@kitware.com *To:* David Henderson dnadav...@yahoo.com *Cc:* cmake@cmake.org *Sent:* Mon

Re: [CMake] 'recursive' or multiple level @@ replacement in configure_file

2011-05-05 Thread David Cole
On Thu, May 5, 2011 at 7:08 AM, J.S. van Bethlehem j.s.van.bethle...@astro.rug.nl wrote: Hello, Today I was trying something along the following lines: in CMakeLists.txt set(BASENAME some_text) set(${BASENAME}_DIR /some/path) set(${BASENAME}_SHARE /some/other/path)

Re: [CMake] CTest dependencies on tests

2011-05-05 Thread David Cole
On Thu, May 5, 2011 at 11:10 AM, Neil Chittenden neilchitten...@quintessa.org wrote: Hi Using CTest, it is possible to set a dependency on another test using: add_test(test1 test1.sh this is test 1) add_test(test2 test2.sh this is test 2) set_tests_properties(test1 PROPERTIES DEPENDS

Re: [CMake] CDash documentation

2011-05-16 Thread David Cole
The change on the Wiki page was made here (by Julien, on Feb. 21, 2010): http://public.kitware.com/Wiki/index.php?title=CDash%3AInstallationaction=historysubmitdiff=20634oldid=20363 I'm pretty sure you need php 5.3 for full functionality. You might be able to get away with 99% of the code

Re: [CMake] CTest submit extra-files to CDash - site header issue

2011-05-16 Thread David Cole
It's just xml. Write it out using whatever print function you want... In ctest, the site headers of the xml files are written out in the file Source/cmCTest.cxx, by the function: void cmCTest::StartXML(std::ostream ostr, bool append) HTH, David On Fri, May 13, 2011 at 8:09 AM, Marcin

Re: [CMake] Express Edition

2011-05-16 Thread David Cole
There is no quick clean way to detect the various Express Editions of Visual Studio. That's why we have code like this in the source tree for CMake itself: # Provide a way for Visual Studio Express users to turn OFF the new FOLDER # organization feature. Default to ON for non-Express users.

Re: [CMake] Merging CTest results

2011-05-16 Thread David Cole
Everytime you run ctest -D ExperimentalTest, ctest writes a Test.xml file that describes what occurred during the run... If you do it twice, (or even more times), only the last one is available after the run. (i.e. -- it's overwritten each time, only the last one wins) You could merge them by

Re: [CMake] Touching files on cache var changes

2011-05-17 Thread David Cole
I do this by making a .in file that gets configured that contains the value of the CMake variable. header.h.in: === #define FEATURE_X @FEATURE_X@ CMakeLists.txt: === configure_file(${CMAKE_CURRENT_SOURCE_DIR}/header.h.in ${CMAKE_CURRENT_BINARY_DIR}/header.h @ONLY)

Re: [CMake] Touching files on cache var changes

2011-05-17 Thread David Cole
On Tue, May 17, 2011 at 1:30 PM, Michael Hertling mhertl...@online.dewrote: On 05/17/2011 05:45 PM, Robert Bielik wrote: Hi all, I'm wondering if there's a way to touch files on cached var changes. Let's say I have an option to enable or disable a feature in my application, and

Re: [CMake] CTest error regex bug

2011-05-18 Thread David Cole
This is just ctest's way of helping you get rid of your warnings. All warnings should be treated as errors... (Just joking, please don't flame... :-) git blame shows that line as having been last modified in 2004. Specifically: git blame -- Source/CTest/cmCTestBuildHandler.cxx 8a2bedda (Ken

Re: [CMake] CMake and VS2010

2011-05-19 Thread David Cole
Are you using CMake 2.8.4? There were several VS 2010 related fixes that went into 2.8.4. On Thu, May 19, 2011 at 10:00 AM, LaViolette, Alan alaviole...@overwatch.textron.com wrote: I am working on converting to Visual Studio 2010 and the solution file that CMake generates does not have any

Re: [CMake] CMake and VS2010

2011-05-19 Thread David Cole
So, if you just open the solution and do a Build Solution doesn't it build everything you'd expect? On Thu, May 19, 2011 at 3:01 PM, LaViolette, Alan alaviole...@overwatch.textron.com wrote: yes I have CMake 2.8.4 *From:* David Cole [mailto:david.c...@kitware.com] *Sent:* Thursday, May

Re: [CMake] 2.8.5 version

2011-05-23 Thread David Cole
, Michael Wild ha scritto: On 02/16/2011 11:40 AM, Andrea Galeazzi wrote: IL 15/02/2011 21.59, David Cole ha scritto: 2011/2/15 Alexander Neundorfa.neundorf-w...@gmx.net mailto:a.neundorf-w...@gmx.net On Monday 14 February 2011, David Cole wrote: On Mon, Feb 14, 2011 at 4:14 AM

Re: [CMake] Parallel build test problem

2011-05-23 Thread David Cole
On Mon, May 23, 2011 at 4:13 AM, Marcel Loose lo...@astron.nl wrote: Hi all, A colleague of mine reported a bug in our CMake-base build system when doing a parallel build of multiple targets where one of the targets is 'test'. quote Running 'make -j16 tMutex test' (or any test

Re: [CMake] Newbie question: Static linking

2011-05-23 Thread David Cole
On Mon, May 23, 2011 at 10:51 AM, Sanatan Rai sana...@gmail.com wrote: On 23 May 2011 15:11, Michael Wild them...@gmail.com wrote: Yes, but you are registering the concrete factories implicitly instead of explicitly, which is causing you the trouble you experience. Better have your user

Re: [CMake] Setting CMAKE_C_COMPILER CMAKE_CXX_COMPILER Deletes Cache?

2011-05-23 Thread David Cole
On Mon, May 23, 2011 at 5:37 PM, kent williams nkwmailingli...@gmail.comwrote: Ran into this with CMake 2.8.4 on Linux -- though apparently not on my OS X machine, go figure. I had a nightly build shell script that as a matter of course set CMAKE_C_COMPILER and CMAKE_CXX_COMPILER on the

Re: [CMake] Handle lib64 library on Linux

2011-05-24 Thread David Cole
On Tue, May 24, 2011 at 12:54 PM, Sara Rolfe smro...@u.washington.eduwrote: Update: I've attempted to add /usr/lib64/libuuid.so as an external library, but am still getting the same error. When I run ccmake it appears to find the location of the library. Below is my CMakeLists.txt in case I

Re: [CMake] Handle lib64 library on Linux

2011-05-24 Thread David Cole
, 2011, at 10:21 AM, David Cole wrote: the same variable name as the sub-project that's finding it for you, you should be able to preset that variable before finding the package that includes it. (Assuming they're using a variable to do this, and not simply adding uuid as a targeted link library

Re: [CMake] Handle lib64 library on Linux

2011-05-24 Thread David Cole
be an answer to this question from someone. HTH, David On Tue, May 24, 2011 at 2:56 PM, Sara Rolfe smro...@u.washington.eduwrote: I have also tried InsightToolkit-3.20.0 unsuccessfully. Thanks, Sara On May 24, 2011, at 10:46 AM, David Cole wrote: I was looking for the source of the issue

Re: [CMake] Error on uninitialized vars?

2011-05-25 Thread David Cole
Johan, I do not think there's a built-in way to make these warnings into errors... It would be easy enough to do, but it's not there right now. One reason is that most projects were developed with the understanding that ${uninitialized_variable} resolves to empty. Many projects even depend on

[CMake] CMake 2.8.5-rc1 ready for testing!

2011-05-25 Thread David Cole
methods into an enum.   Add component support to DragNDrop generator. David Cole (34):   ExternalProject Test: Increase test timeout value   CFBundle Test: Add PATHS for finding Rez (#11295)   CTest: Mark DART_TESTING_TIMEOUT as advanced (#10150)   Xcode: Allow override

Re: [CMake] Copying files (different name)

2011-05-27 Thread David Cole
Using configure_file with the COPYONLY flag is a reasonable technique: http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:configure_file On Thu, May 26, 2011 at 8:38 PM, Tyler ty...@cryptio.net wrote: Don't know if file() will work but configure_file() will. You might want the

Re: [CMake] Errors

2011-05-31 Thread David Cole
To run just a single test, use ctest, with -R for the test name, and -VV to see the output: ctest -R TestsWorkingDirectory -VV On Tue, May 31, 2011 at 5:26 AM, Frans de Boer fr...@fransdb.nl wrote: Dear all, When running make check, I get the following results: The following tests

Re: [CMake] Compiler/Linker flags for coverage/memcheck

2011-06-03 Thread David Cole
Don't do it in your CMakeLists.txt file. Do it in the script that drives your coverage build. If the script runs on more than one machine, then add appropriate conditionals into the script to handle the platform differences. HTH, David On Fri, Jun 3, 2011 at 3:48 AM, Arunmozhi

Re: [CMake] Windows build inconsistency...

2011-06-03 Thread David Cole
On Fri, Jun 3, 2011 at 9:10 AM, Eric Noulard eric.noul...@gmail.com wrote: 2011/6/3 Jean-Christophe Fillion-Robin jchris.filli...@kitware.com: Just tested it on linux and the same remark applies. Hi, I cannot find the answer in the ML archive but I think I already crossed that issue in the

Re: [CMake] CPack specify filename

2011-06-03 Thread David Cole
On Fri, Jun 3, 2011 at 4:38 AM, NoRulez noru...@me.com wrote: Is this the only way? Because i would like to have only one CTestScript.cmake file which came from the build server. Of course it's not the only way. (TMTOWTDI: always, even if you're not using perl.) It is a reasonable suggestion,

Re: [CMake] Missing libgmp-10.dll

2011-06-03 Thread David Cole
On Fri, Jun 3, 2011 at 10:55 AM, Bill Hoffman bill.hoff...@kitware.com wrote: On 6/3/2011 8:10 AM, Bill Lorensen wrote: My version is 3.18 and I have to add c:/MinGW/bin to my windows Path otherwise the I get the missing dll error. I did not have to do this in earlier mingw versions. Notice I

Re: [CMake] Missing libgmp-10.dll

2011-06-03 Thread David Cole
On Fri, Jun 3, 2011 at 8:10 AM, Bill Lorensen bill.loren...@gmail.com wrote: My version is 3.18 and I have to add c:/MinGW/bin to my windows Path otherwise the I get the missing dll error. I did not have to do this in earlier mingw versions. Notice I set it in Path and not PATH. Path and PATH

Re: [CMake] Missing libgmp-10.dll

2011-06-03 Thread David Cole
, here, so I can replicate what you're doing, because I only set env vars in a command prompt or a batch file. I don't trust stuff that relies on system-wide env vars on Windows. And in a cmd prompt or batch file set Path is absolutely equivalent to set PATH) On Fri, Jun 3, 2011 at 11:21 AM, David

[CMake] Apple WWDC 2011

2011-06-07 Thread David Cole
Hey CMake Mac fans, I am at Apple's WWDC 2011 conference this week in San Francisco -- if you are too, and you'd like to meet up, let me know... Reply just to me so we don't get too much list traffic. Cheers, David C. ___ Powered by www.kitware.com

Re: [CMake] Determine Installer Build Configuration in Visual Studio

2011-06-13 Thread David Cole
On Fri, Jun 10, 2011 at 11:02 AM, Jason Gochanour jrgoc...@lanl.gov wrote: I think you may be right. CMAKE_INSTALL_CONFIG_NAME doesn't contain a value when I run a fresh build of the PACKAGE project in Visual Studio. If it isn't possible to tell CPack what build configuration the user chooses

Re: [CMake] Kdevelop cmake project move

2011-06-15 Thread David Cole
A full clean, re-building all components whose paths have changed should work. Is that what you're trying to avoid? On Wed, Jun 15, 2011 at 2:32 AM, Franz Engel franz_lambert_en...@yahoo.dewrote: Hello, I have a little problem. I have to change the directory of my kdevelop-cmake project.

Re: [CMake] simple cdash script

2011-06-15 Thread David Cole
make Experimental intentionally skips the update step. If you want to do the same thing as make Experimental but add the update step, you'll have to run ctest with appropriate -D or -M and -T arguments, or write a ctest -S script to do the steps you'd like to do. HTH, David On Wed, Jun 15,

Re: [CMake] simple cdash script

2011-06-15 Thread David Cole
Onsdag 15 juni 2011 12.37.10 skrev David Cole : make Experimental intentionally skips the update step. If you want to do the same thing as make Experimental but add the update step, you'll have to run ctest with appropriate -D or -M and -T arguments, or write a ctest -S script

[CMake] CMake 2.8.5-rc2 ready for testing!

2011-06-15 Thread David Cole
(#12233) David Cole (3):   BundleUtilities: Avoid a cryptic and unhelpful error message   BundleUtilities: Avoid test on Watcom dashboards (#12034)   CMake: eliminate use of cvs in the Release scripts Eric NOULARD (2):   CPackRPM: Enhance documentation   Add some more Specs

  1   2   3   4   5   6   7   8   9   10   >