Re: [CMake] debug/optimized include directories

2011-11-07 Thread David Cole
e > behavior I would expect. > > - > Robert Dailey > > > On Mon, Nov 7, 2011 at 11:23 AM, Alexander Neundorf > wrote: >> >> On Friday 04 November 2011, David Cole wrote: >> > On Wed, Nov 2, 2011 at 8:30 PM, Stephen Kelly >> > wrote: >> > > D

Re: [CMake] CMake 2.4.6 and Xcode 4.2 on Mac OS X 10.7

2011-11-08 Thread David Cole
More info, please... I assume you mean CMake 2.8.6 and not 2.4.6, as in the subject line... :-) Are you setting CC and CXX before calling "cmake -G Xcode ../CMake"? That's not a valid way of setting the compiler to a different compiler with the Xcode generator. Are you trying to build CMake or so

Re: [CMake] An Italian article about CMake

2011-11-08 Thread David Cole
Excellent! Will the article be available online, or do you have to get a copy of the November issue of the magazine to read the article? Thanks, David C. Kitware, Inc. On Tue, Nov 8, 2011 at 3:54 AM, Andrea Galeazzi wrote: > I'm glad to inform you that I recently wrote an article about CMake >

Re: [CMake] [patch] add XRes to FindX11.cmake

2011-11-09 Thread David Cole
Applied: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0e721e512941c7f7aa51116c3291dfa198b5fccb If you use git, please use "git format-patch -1" after making a commit to prepare future patches. That makes it slightly easier for us to apply patches and test them out. Plus, it automatically

Re: [CMake] Multiple platforms/configurations

2011-11-09 Thread David Cole
The CMake Visual Studio generators do not presently support multiple platforms in the same Visual Studio project file. Moreover, they do not presently support anything beyond 32- and 64-bit Windows targets. You will need separate solution and project files for separate platforms, or you will need t

Re: [CMake] Per configuration ADD_CUSTOM_COMMAND

2011-11-09 Thread David Cole
There are also generator expressions for TARGET_LINKER_FILE and TARGET_SONAME_FILE -- have you tried those? I think when the target is a .dll, the TARGET_LINKER_FILE expression yields the name of the corresponding .lib file... HTH, David On Wed, Nov 9, 2011 at 10:28 AM, Ludovic Hoyet wrote: >

Re: [CMake] Multiple platforms/configurations

2011-11-09 Thread David Cole
On Wed, Nov 9, 2011 at 10:21 AM, Tom Deblauwe wrote: > On Wednesday 09 November 2011 12:45:43 David Cole wrote: >> The CMake Visual Studio generators do not presently support multiple >> platforms in the same Visual Studio project file. Moreover, they do >> not presently su

Re: [CMake] CPack Generator jar support

2011-11-09 Thread David Cole
Adding a generator will require C++ modifications to the CPack code... On Wed, Nov 9, 2011 at 2:31 PM, Alexander Broekhuis wrote: > Hi all, > It is possible to add a custom generator to cpack? > What I'd like to have is a generator for Jar files. I know a jar file is > basically the same as a zi

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

2011-11-10 Thread David Cole
As noted in that bug itself in the most recent note: "Brad just put this one in the backlog... I'm not going to put it on the roadmap for 2.8.6 unless somebody else steps forward with more work on this, as noted by Brad in his previous comments here." I'm going to say the same thing for 2.8.7 unl

Re: [CMake] VS2003 and reloading projects

2011-11-10 Thread David Cole
I like reliable. I always do exactly as you say: "close VS2003 completely, run CMake on the outside, and then reopen my solution." That's just what I do... David On Thu, Nov 10, 2011 at 2:30 PM, Robert Dailey wrote: > I've been struggling with a real nuisance lately. When I run a build in

Re: [CMake] Generating for cygwin

2011-11-10 Thread David Cole
On Thu, Nov 10, 2011 at 2:59 PM, Robert Dailey wrote: > How do I generate makefiles for cygwin? Can I run CMake through Windows and > generate Unix Makefiles, or do I need to run cmake from inside of cygwin > itself to generate? > Instructions would be awesome, since I suck at linux and I'm just d

Re: [CMake] Where are tests located?

2011-11-10 Thread David Cole
When you add an IMPORTED target, CMake does not know where the imported target is AT ALL until you tell it. After: add_executable(run_main.pl IMPORTED) You need: set_property(TARGET run_main.pl PROPERTY IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/run_main.pl") See docs here: http://cmak

Re: [CMake] Generating for cygwin

2011-11-10 Thread David Cole
iles that utilize VS2003? > > - > Robert Dailey > > > On Thu, Nov 10, 2011 at 2:03 PM, David Cole wrote: >> >> On Thu, Nov 10, 2011 at 2:59 PM, Robert Dailey wrote: >> > How do I generate makefiles for cygwin? Can I run CMake through Windows >> > and >&

Re: [CMake] Where are tests located?

2011-11-11 Thread David Cole
> ) > add_test( test1 run_main.pl) > > > If run_main.pl is > > #!/usr/bin/perl > system "main --val 24" > > > Main could be in the build tree if it comes from main.cxx or it could be in > the source tree if it is a script.  How does cmake know where

Re: [CMake] Where are tests located?

2011-11-11 Thread David Cole
na > > > > > -Original Message- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of > EXT-York, Gantry > Sent: Thursday, November 10, 2011 2:34 PM > To: David Cole > Cc: cmake@cmake.org > Subject: Re: [CMake] Where are tests located?

Re: [CMake] Specifying library build path for simulator and device for an iOS target in Xcode

2011-11-11 Thread David Cole
On Fri, Nov 11, 2011 at 11:12 AM, Daniel Dekkers wrote: > Hi, > > We are building a lib and an example app in Xcode (4.2) targeting iOS (5.0). > > The top-level CMakeLists.txt recurses into lib and example: > > PROJECT(Suite) > ADD_SUBDIRECTORY(MyLibrary) > ADD_SUBDIRECTORY(MyExample) > > The lib

Re: [CMake] VS2010 Express generator?

2011-11-11 Thread David Cole
You just need to install a PlatformSDK to go with VS 2010 Express. Search the mailing list for prior discussions of this fact. On Fri, Nov 11, 2011 at 11:36 AM, David Doria wrote: > I am using CMake 2.8.6 and am hoping to generate a project for VS2010 > Express. Which generator should I use? I t

Re: [CMake] QtCreator generator?

2011-11-11 Thread David Cole
On Fri, Nov 11, 2011 at 1:08 PM, David Doria wrote: > I saw a discussion about this back in March, but I didn't see any > conclusions/resolutions. Is there a way to generate a QtCreator > project using CMake? I tried the CMake support that was built into > QtCreator itself, but it seems very awkwa

Re: [CMake] How to build ccmake.exe on Windows?

2011-11-11 Thread David Cole
UNIX is ON for cygwin based builds. (However, WIN32 is not ON any longer. It used to be, but the cygwin guys didn't want it that way, so now WIN32 is OFF.) Assuming you are in a directory named "CMake" which is the CMake source tree, you can do the following to produce a cygwin based CMake (in a r

Re: [CMake] Workflow of a collaborative project in Visual Studio+CMake

2011-11-12 Thread David Cole
For reference, the bug Mike refers to is this one: http://public.kitware.com/Bug/view.php?id=11258 I always use the manual technique of shutting down VS, running CMake, and then re-opening VS. It's really not that bad, once you get used to it. David C. On Fri, Nov 11, 2011 at 5:48 PM, Micha

Re: [CMake] QtCreator generator?

2011-11-12 Thread David Cole
that this is a project and just opens it as > plain text? How do I now open this project in QtCreator? > > To use Visual Studio 2010 Express > If the VS "PlatformSDK" that David Cole mentioned is installed properly, > does a "Visual Studio 2010 Express" generator

Re: [CMake] Issue with check_include_file() and GL/glxproto.h

2011-11-13 Thread David Cole
Moving forward, with new code, we should always use if(DEFINED) or if(NOT DEFINED) constructs. They should largely be equivalent, except for edge/corner cases you've noted involving variables whose values are other variable names. The construct found in lines such as: IF("${VARIABLE}" MATCHES "^${

Re: [CMake] Problem with LINK_DIRECTORIES

2011-11-14 Thread David Cole
On Mon, Nov 14, 2011 at 9:36 AM, Robert Dailey wrote: > On Mon, Nov 14, 2011 at 6:42 AM, Michael Wild wrote: >> >> Hi Arun >> Consider LINK_DIRECTORIES to be obsolete and to be avoided at all cost. > > I don't really agree with this advice. There are circumstances where > link_directories() is ab

Re: [CMake] Problem with LINK_DIRECTORIES

2011-11-14 Thread David Cole
If you already know where all the libraries are, please just use the full paths to those libraries, and do not use find_library. On Mon, Nov 14, 2011 at 3:15 PM, Robert Dailey wrote: > On Mon, Nov 14, 2011 at 1:59 PM, Michael Hertling > wrote: >> >> On 11/14/2011 06:17 PM, Robert Dailey wrote:

Re: [CMake] Failure to generate correct output name in visual studio

2011-11-16 Thread David Cole
If you end the name in a ".", or set the suffix to ".", does it produce a file like you want? Or does it still append "dll"? On Wed, Nov 16, 2011 at 2:06 AM, J Decker wrote: > (Visual studio bug actually - as I was trying to find the actual > difference in the output, and finding none, I have to

Re: [CMake] Installing Visual Studio PDB files with CMake

2011-11-16 Thread David Cole
On Wed, Nov 16, 2011 at 9:32 AM, Stephen Torri wrote: > On 11/4/11, Michael Hertling wrote: >> >> The problem is that PDB files are usually generated next to their binary >> in a configuration-specific directory which can not be accessed smoothly >> by INSTALL(FILES ...). However, you can use a P

Re: [CMake] CDash + Perforce

2011-11-16 Thread David Cole
CDash is just a web app / server app. It does not do builds, it just collects information from clients that submit to it, and displays results. Client machines can run ctest -S scripts to submit build/test results to a CDash dashboard. Look at the notes attached to a typical CMake dashboard for a

Re: [CMake] CDash + Perforce

2011-11-16 Thread David Cole
control systems. HTH, David On Wed, Nov 16, 2011 at 12:01 PM, David Cole wrote: > CDash is just a web app / server app. It does not do builds, it just > collects information from clients that submit to it, and displays > results. > > Client machines can run ctest -S scripts to su

Re: [CMake] CDash + Perforce

2011-11-16 Thread David Cole
an online repository viewer would need to be added. It's all do-able... just not done yet. :-) David > ----- > Robert Dailey > > > On Wed, Nov 16, 2011 at 11:03 AM, David Cole wrote: >> >> And, to answer your initial question, no, perforce is not yet

[CMake] The upcoming CMake 2.8.7 release candidate cycle

2011-11-16 Thread David Cole
u are a contributor, please take note, and get any pending changes merged to 'next' and tested on the dashboard over the next 2-3 weeks before the first rc. Thanks, David Cole Kitware, Inc. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware

Re: [CMake] CDash + Perforce

2011-11-16 Thread David Cole
; and I'll work on this for you (class names, interface methods that are > important to implement, etc) > > - > Robert Dailey > > > On Wed, Nov 16, 2011 at 12:03 PM, David Cole wrote: >> >> On Wed, Nov 16, 2011 at 12:28 PM, Robert Dailey >> wrot

Re: [CMake] problems adding opencv

2011-11-16 Thread David Cole
Looks like OpenCV is not built or installed correctly here. The string "@CMAKE_LIB_DIRS_CONFIGCMAKE@" should have been resolved into a "list of directories" value when the OpenCVConfig.cmake file was created. How did you build/install OpenCV? On Wed, Nov 16, 2011 at 4:51 PM, Javi Soler wrote:

Re: [CMake] [RFC] How to use pkg-config under Windows (... and OSX)?

2011-11-17 Thread David Cole
On Thu, Nov 17, 2011 at 12:26 PM, Alexander Neundorf wrote: > On Thursday 17 November 2011, Alan W. Irwin wrote: >> Hi Alex: >> >> On 2011-11-15 18:07+0100 Alexander Neundorf wrote: >> > Hi, >> > >> > cmake ships with a FindPkgConfig.cmake file, which is used by some Find- >> > modules. >> > Also

Re: [CMake] One project, one platform, 2 compilers

2011-11-17 Thread David Cole
To use two different compilers, you simply need two different build trees. Same CMakeLists file, but different build trees. You should not specify the compiler in your CMakeLists.txt files at all, but rather set CC and CXX env vars to control the compiler when first generating a build tree. See t

Re: [CMake] [RFC] How to use pkg-config under Windows (... and OSX)?

2011-11-17 Thread David Cole
On Thu, Nov 17, 2011 at 2:06 PM, Alexander Neundorf wrote: > On Thursday 17 November 2011, David Cole wrote: > ... >> If a project does something like this (distributes a file with >> build/install time information in it) but then lets the end user of >> the binary inst

Re: [CMake] Problems with CPack/NSIS and CPACK_NSIS_MUI_FINISHPAGE_RUN

2011-11-18 Thread David Cole
If you want to run an executable in the "MyProject" directory instead of the "bin" directory, then set: set(CPACK_NSIS_EXECUTABLES_DIRECTORY "MyProject") If you want to run one in the root installation directory, set: set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".") So I still assert that the

Re: [CMake] Problems with CPack/NSIS and CPACK_NSIS_MUI_FINISHPAGE_RUN

2011-11-18 Thread David Cole
This commit shows the code that fixed the bug, and led me to the docs for that variable: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=bee514c3611f7a7b972d9ade14f94c0f25bc001e On Fri, Nov 18, 2011 at 7:04 AM, David Cole wrote: > If you want to run an executable in the "M

Re: [CMake] Problems with CPack/NSIS and CPACK_NSIS_MUI_FINISHPAGE_RUN

2011-11-18 Thread David Cole
Actually, that commit just led me to a usage of that variable. The docs were added later. On Fri, Nov 18, 2011 at 7:06 AM, David Cole wrote: > This commit shows the code that fixed the bug, and led me to the docs > for that variable: > >  http://cmake.org/gitweb?p=cmake.git;a=

Re: [CMake] Transitive linking

2011-11-19 Thread David Cole
On Nov 19, 2011, at 2:02 AM, James Bigler wrote: > On Fri, Nov 18, 2011 at 5:51 PM, Michael Hertling wrote: > On 11/18/2011 10:03 PM, James Bigler wrote: > > 2011/11/18 Alexander Neundorf > > > >> On Friday 18 November 2011, James Bigler wrote: > >>> I thought CMake knew how to not drag all t

Re: [CMake] Required file to use add_test in a CTedt Script?

2011-11-21 Thread David Cole
The add_test command only works in the context of a CMakeLists.txt file. It is not a "scriptable" command. HTH, David On Nov 20, 2011, at 12:24 PM, noru...@me.com wrote: > Hi, > > I want to use the add_test() command in a ctest script, but what must I > include to get them working? > > Cur

Re: [CMake] Positives detected in cmake-2.8.6 by antivirus software

2011-11-21 Thread David Cole
Have you run a full virus scan on your entire system? I would think that if you have a pre-existing virus, and are building software on that machine, then it's quite likely for a copy of that virus to end up in whatever software you are building, regardless of what it is, depending on the virus,

Re: [CMake] VC2010 Express + CMake = fails

2011-11-21 Thread David Cole
CMake does use env vars PATH, LIB and INCLUDE when detecting executables, libraries and header files. If your env is set up on a machine-wide basis for vs 2003, it would not surprise me if some things were found inconsistently when attempting to build for vs 10... On Nov 19, 2011, at 1:48 PM,

Re: [CMake] VC2010 Express + CMake = fails

2011-11-21 Thread David Cole
I've also always found a key ingredient in making multiple versions of Visual Studio work well with each other is to keep them from adding anything about themselves into system-wide or user-wide env var values. It's both unnecessary and counterproductive. Especially given the fact that VS itself w

Re: [CMake] VC2010 Express crashing

2011-11-21 Thread David Cole
Submit/send your crash reports to Microsoft so they can fix it... I haven't heard of a problem like this. Is it 100% reproducible? (i.e. does it happen every time you do this?) On Mon, Nov 21, 2011 at 4:30 PM, Robert Dailey wrote: > Unfortunately I don't have a whole lot of details to share her

Re: [CMake] Cmake: Link boost statically in Xcode

2011-11-21 Thread David Cole
If you are building a static library, then there is nothing for the linker to put into your library that comes from boost. If somebody then builds a shared library or an executable that links to your library, they will also have to link the dependent boost libraries, if the functions they call in

Re: [CMake] VC2010 Express crashing

2011-11-22 Thread David Cole
now if telling someone to send reports to Microsoft and have them > fix the problem is the most reasonable solution. > > - > Robert Dailey > > > On Mon, Nov 21, 2011 at 5:18 PM, David Cole wrote: >> >> Submit/send your crash reports to Microsoft so they can f

Re: [CMake] CMake and Sandboxed Mac OS X app

2011-11-22 Thread David Cole
I have not heard of anybody building a Sandboxed app using CMake yet. What are the requirements for a Sandboxed app? Is there a documentation page from Apple that describes what needs to be in the Info.plist to support Sandboxing? Thx, David On Tue, Nov 22, 2011 at 10:44 AM, NoRulez wrote: >

Re: [CMake] Don't export symbols but the one I want

2011-11-23 Thread David Cole
On Wed, Nov 23, 2011 at 1:26 PM, John Drescher wrote: > On Wed, Nov 23, 2011 at 12:30 PM, Stephen Kelly wrote: >> David Demelier wrote: >> >>> Hello, >>> >>> I'm creating a library that use a lot of internal code (not static >>> because it should be visible by other compilation units) so I would

Re: [CMake] CodeBlocks Generator misses custom targets

2009-07-30 Thread David Cole
That looks like line 201 in CMake-2-6-4 source tree. In CVS HEAD, this has moved to line 390, but the same code is still there... Looks like that whole else chunk should be removed. Unless somebody can say why it's there...? On Thu, Jul 30, 2009 at 5:41 AM, Pierre-Julien Villoud wrote: > Hi ev

Re: [CMake] visual studio parallel build

2009-07-30 Thread David Cole
If something is non-deterministic then it means there is a missing dependency somewhere... This should work. We have many dashboards that run with parallel Visual Studio builds and work reliably day after day. Whenever I have seen a problem with it, there has always been a missing depedency express

Re: [CMake] visual studio parallel build

2009-07-30 Thread David Cole
No. There is no -j flag to nmake. On Thu, Jul 30, 2009 at 2:28 PM, Dominik Szczerba wrote: > BTW do you know if it is possible to do a parallel build with nmake? (like > -jN with GNU make) > -- Dominik > > > John Drescher wrote: > >> On Thu, Jul 30, 2009 at 2:16 PM, j s wrote: >> >>> I guess I wo

Re: [CMake] custom target not working on windows

2009-07-31 Thread David Cole
On Fri, Jul 31, 2009 at 11:01 AM, Tyler Roscoe wrote: > On Fri, Jul 31, 2009 at 08:42:10AM -0400, Marc Schafer wrote: > > add_custom_target ( generated_messages ALL > > COMMAND > > ${ANT_EXECUTABLE} -f > ${PROJECT_SOURCE_DIR}/java/MessageGenerator/build.xml > > run > > COMMAND > > ${CMAKE

Re: [CMake] CodeBlocks Generator misses custom targets

2009-08-05 Thread David Cole
On Wed, Aug 5, 2009 at 4:57 PM, Alexander Neundorf wrote: > On Thursday 30 July 2009, David Cole wrote: > > That looks like line 201 in CMake-2-6-4 source tree. In CVS HEAD, this > has > > moved to line 390, but the same code is still there... > > > > Looks like t

Re: [CMake] Problem using find_library() for Mac frameworks

2009-08-13 Thread David Cole
On Thu, Aug 13, 2009 at 1:18 AM, Michael Wild wrote: > > On 13. Aug, 2009, at 1:14, Calder Coalson wrote: > > I have been torturing myself over the following short bit of code all >> day to no avail, so I'm sending out an email to this list in the hopes >> that someone can catch whatever stupid

Re: [CMake] CPack Error: Not enough items on list: CPACK_INSTALL_CMAKE_PROJECTS

2009-08-13 Thread David Cole
>From CPack.cmake :cpack_set_if_not_set(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR};${CMAKE_PROJECT_NAME};ALL;/") Looks like you do not have a "PROJECT" statement in your top level CMakeLists.txt file. If you did, the second component of CPACK_INSTALL_CMAKE_PROJECTS would not be the empty

Re: [CMake] Mac hangs on ctest svn update

2009-08-19 Thread David Cole
If you cache the svn creds on a Mac over an ssh connection, (instead of in the Mac GUI) then they are stored as on Linux, in a file under the ~/.subversion directory. And then you will not be prompted for future connections as the same user to the same repository... (If you already have cached cre

Re: [CMake] Custom target bug...

2009-08-19 Thread David Cole
You're using incorrect arguments as DEPENDS. Things that follow DEPENDS should be full path file names... not cmake target names. HTH, David On Wed, Aug 19, 2009 at 11:47 AM, Tim Kientzle wrote: > Tim Kientzle wrote: > >> Tim Kientzle wrote: >> >>> I'm having trouble with a custom target that

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-20 Thread David Cole
Hold on there... The Express editions are not meant to build redistributable binaries. They're meant for personal use: i.e. -- each user compiles his own code. I'm pretty sure it's a violation of the Express edition license agreement to build binaries for other people. You need at least the "Stand

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-20 Thread David Cole
ess Editions. > > http://www.microsoft.com/express/support/faq/ > > Juan > > > > On Thu, Aug 20, 2009 at 4:33 PM, David Cole wrote: > >> Hold on there... >> >> The Express editions are not meant to build redistributable binaries. >> They're meant

Re: [CMake] Setting the and Icon for a Windows Executable

2009-08-21 Thread David Cole
Add a *.rc file to your ADD_EXECUTABLE sources. In the *.rc file, add a line that references the ico file: IDR_MAINFRAME ICON"res\\CMakeSetupDialog.ico" (In this example, IDR_MAINFRAME is a #define that gives an integer identifier for the ico resource.) See CMake/Sou

Re: [CMake] Setting the and Icon for a Windows Executable

2009-08-21 Thread David Cole
> Mike Jackson mike.jack...@bluequartz.net > BlueQuartz Softwarewww.bluequartz.net > Principal Software Engineer Dayton, Ohio > > On Aug 21, 2009, at 3:48 PM, David Cole wrote: > > Add a *.rc file to your ADD_EXECUTABLE sou

Re: [CMake] Cross-compilation related question

2009-08-25 Thread David Cole
If you are using "NMake Makefiles" as the CMake generator, just be sure to launch cmake (or cmake-gui) from the "Visual Studio x64 Cross Tools Command Prompt" That should build x64 code for you without any special adjustments out of the box. HTH, David On Tue, Aug 25, 2009 at 12:56 PM, Xiangy

Re: [CMake] Compiled file cannot be executed

2009-08-27 Thread David Cole
Use full path file names as DEPENDS arguments. Also: depend on the executable file too so that cmake knows not to try to run the custom command before the executable is built... i.e. : DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/server/someinput.txt ${CMAKE_BINARY_DIR}/bin/generate${CMAKE_EXECUTABLE_SUFFI

Re: [CMake] Compiled file cannot be executed

2009-08-28 Thread David Cole
t to someoutput.txt >>>> add_executable(generate server/generate.c) >>>> add_custom_command( >>>> # I want to generate someoutput.txt >>>> OUTPUT ${CMAKE_BINARY_DIR}/server/someoutput.txt >>>> # using the generate program. cmake knows that &qu

Re: [CMake] Get all required shared libs from a target

2009-08-28 Thread David Cole
See also the BundleUtilities module. Work in CVS CMake recently has extended the "fixup_bundle" function so that it works on Windows/Linux as well as on a Mac. And what you are looking for is exactly what it does. If executed in an install script, fixup_bundle will analyze a given executable and t

Re: [CMake] Fwd: generating CTest tests

2009-08-28 Thread David Cole
On Fri, Aug 28, 2009 at 3:11 PM, Alex H wrote: > Hello, > So where do we specify/put in the CMakeLists.txt where test1 is expected to > fail or pass? > How does CTest knows this... > If your program returns a 0, it passes. If it does not, it fails. If you want to invert this logic, set the tes

Re: [CMake] Fwd: generating CTest tests

2009-08-31 Thread David Cole
That feature (printing the timings) is in CVS HEAD of ctest. It's not in a cmake release yet On Mon, Aug 31, 2009 at 5:34 AM, Marcel Loose wrote: > Hi John, > > How do you get these CPU times printed. I've never seen these before. Or > is that a Windows thingy, that doesn't work on Linux? >

Re: [CMake] triggering rebuild on windows

2009-08-31 Thread David Cole
Your original question was about why not everything was recompiling... Then, when a solution is offered, you say "but if I do that everything will recompile!" We thought that's what you wanted... :-) On Mon, Aug 31, 2009 at 2:22 PM, j s wrote: > That wouldn't be good for what I am trying to do

Re: [CMake] cpack install problem

2009-09-03 Thread David Cole
Likely comes from a build tree produced with an original Visual Studio, then an upgrade to a SP1 (or 2 or 3) of the same Visual Studio, then an incremental build of the tree... Produces some obj files that came from the original, some that came with SP1 and the blend causes dependencies on both ver

Re: [CMake] XCode, CMAKE_CFG_INTDIR, and add_custom_command

2009-09-04 Thread David Cole
It should be fairly easy to add a 2nd custom command that creates the directory and writes out a stamp file and then make your 1st custom command depend on the stamp file. I would go with that approach and put stuff where you want it rather than trying to figure out where all the varied generators

Re: [CMake] macosx fix bundle problems

2009-09-08 Thread David Cole
These lines of output near the beginning: -- warning: *NOT* handled - .app directory case... -- error: fixup_bundle: not a valid bundle ...indicate that fixup_bundle is not getting a .app bundle as its input... The assumption made by fixup_bundle is that there is an executable in the .app/Content

Re: [CMake] Only install file if it does not exist?

2009-09-09 Thread David Cole
Or just use "install(FILES" -- it already does the "if not exists, if newer than" checks... Actually, what you have now is a strange combination of checking for the file's existence at "CMake configure" time, but then running a custom command at "make" time -- both of which happen before "make inst

Re: [CMake] set CTEST_ENVIRONMENT from within CMakeLists.txt?

2009-09-10 Thread David Cole
CTEST_ENVIRONMENT cannot be used from within CMakeLists.txt -- it is a "ctest -S script" only variable... To do what you want, you will have to use CVS CMake, or wait until CMake 2.8 and then use the ENVIRONMENT test property. With CVS or the upcoming CMake 2.8, after calling ADD_TEST in your CMak

Re: [CMake] Make project name a target

2009-09-11 Thread David Cole
When you say "make the project name a target" what do you mean by that? (1) internally create a CMake target with the given name? (2) create a makefile target with that name that builds all the cmake targets in that cmake project? (3) something else? (1) is probably not feasible for most folks --

Re: [CMake] add_subdirectory and build directory

2009-09-12 Thread David Cole
On Sat, Sep 12, 2009 at 2:45 AM, Michael Wild wrote > > > True, but then you wouldn't point it at a binary directory. AFAIK, if you > point project A at an out-of-source source, say project B, that project B > will be built completely within the binary tree of A. > > The second argument to add_sub

Re: [CMake] Problem using find_library()

2009-09-13 Thread David Cole
NAMES and PATHS need to be capitalized... On Sun, Sep 13, 2009 at 3:25 PM, Calder Coalson wrote: > Sorry to bother everyone, but I have a mildly inexplicable problem > with the find_library function. I won't bother you with the entire > code unless you ask for it, but here's a minimal example of

Re: [CMake] is ccmake reliable?

2009-09-15 Thread David Cole
I believe the word used was "reproducible" not "reliable" -- and I think he was talking about the fact that it is not reproducible because it depends on human interaction. Other than the human sitting at the keyboard, I have found ccmake (and *all* of the cmake executables) to be quite reliable. Th

Re: [CMake] Xcode paths not turning out right

2009-09-18 Thread David Cole
Sounds like maybe you are using "${CMAKE_CURRENT_SOURCE_DIR}" in a function or macro. (defined at the top level, but called from a lower level)... On Fri, Sep 18, 2009 at 4:12 PM, Brad King wrote: > Robert Dailey wrote: > >>Where is the CMakeLists.txt file containing this line? >>Pe

Re: [CMake] multiple cmake files in one directory

2009-09-22 Thread David Cole
How about: if(building_project_1) include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists-1.txt) endif() if(building_project_2) include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists-2.txt) endif() On Tue, Sep 22, 2009 at 11:55 AM, wrote: > Hi, > > I have seen a thread about this issue but there was not a

Re: [CMake] file1 newer than file2 test

2009-09-25 Thread David Cole
See also the "IS_NEWER_THAN" clause of the IF command. http://www.cmake.org/cmake/help/cmake2.6docs.html#command:if On Fri, Sep 25, 2009 at 1:47 PM, James Bigler wrote: > Is there a way to test if one file is newer than another file? Something > along the lines if "cmake -E compare_files", but

Re: [CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-28 Thread David Cole
On Mon, Sep 28, 2009 at 4:12 AM, Andreas Pakulat wrote: > On 28.09.09 00:05:35, Pau Garcia i Quiles wrote: > > On Fri, Sep 25, 2009 at 10:07 PM, Bill Hoffman > wrote: > > > I am happy to announce that CMake 2.8.0 has entered the beta stage! You > > > can find the source and binaries here: > http

Re: [CMake] Following up Issue 8177 -- CPACK_NSIS_MODIFY_PATH not working

2009-09-28 Thread David Cole
This patch has been applied and the fix is in the 2.8.0-rc-1 release candidate... On Wed, Sep 2, 2009 at 11:27 PM, Chris Cheung wrote: > Dear developers, > > I met the same problem as described in Issue 8177 > > http://www.vtk.org/Bug/print_bug_page.php?bug_id=8177 > > CPACK_NSIS_MODIFY_PATH d

Re: [CMake] CMake cvs TOT and Xcode

2009-09-29 Thread David Cole
Which TOT is the one you mean?http://acronyms.thefreedictionary.com/TOT What day did you update CMake from CVS? What Xcode version? What Mac OSX version? On Tue, Sep 29, 2009 at 12:17 AM, James Bigler wrote: > I tried this with a fairly simple example with CMake cvs TOT. Any ideas? > > CMakeLi

Re: [CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-29 Thread David Cole
On Tue, Sep 29, 2009 at 3:26 AM, Andreas Pakulat wrote: > On 28.09.09 16:08:22, Brad King wrote: > > Andreas Pakulat wrote: > > > On 25.09.09 16:07:21, Bill Hoffman wrote: > > >> I am happy to announce that CMake 2.8.0 has entered the beta stage! > You > > >> can find the source and binaries here

Re: [CMake] How to not evaluate variable names ?

2009-09-30 Thread David Cole
Are you using "FILE(WRITE"...? What version of CMake? This should work. Send the CMake code snippet you are using to try to do this so that we can see what might be wrong. If using older CMake (2.4.something) then you may have to do: set(DOLLAR "$") file(WRITE blah "${DOLLAR}{varNameHere}")

Re: [CMake] How to not evaluate variable names ?

2009-09-30 Thread David Cole
ake version is 2.4.8, but customized with our own generators. > > Maybe the simpler thing, given the case and the lack of a direct solution, > would > be to add a specific string to the attribute, signaling to the code that it > should be replaced ? > > Fred > > Quoting Da

Re: [CMake] CMake, Cpack and NSIS woes.

2009-10-12 Thread David Cole
I reproduced this. In the CPackConfig.cmake that ends up in the binary tree, the following contents are found: SET(CPACK_NSIS_DISPLAY_NAME "MyStuff\CMakeTest 1.1") SET(CPACK_NSIS_PACKAGE_NAME "MyStuff\CMakeTest 1.1") SET(CPACK_PACKAGE_INSTALL_DIRECTORY "MyStuff\\CMakeTest 1.1") The display name a

Re: [CMake] xcode gcc version

2009-10-14 Thread David Cole
What's the issue number? Is there a patch attached to it...? On Wed, Oct 14, 2009 at 12:31 PM, Clinton Stimpson wrote: > > I've found there's an xcode setting for this, but CMake doesn't put it in > the > generated xcode project. > There's already a thing in the bug tracker for this. > That woul

Re: [CMake] MSVC Console Environment in CTest

2009-10-15 Thread David Cole
Have the scheduled task call a batch file of your creation (driver.bat) Have driver.bat call vcvars32.bat and then ctest -S your script like this: startlocal call "C:\Program Files\full\path\to\vcvars32.bat" "C:\Program Files\CMake 2.6\bin\ctest.exe" -S "C:\full\path\to\script.cmake" endlocal sta

Re: [CMake] "Error in read script" when not calling CTEST_TEST in ctest script

2009-10-19 Thread David Cole
The return value of ctest after it runs a -S script indicates whether the script as a whole succeeded or not. The only way it succeeds all the way and returns 0 is if *all* of the steps invoked are error free. The build errors mean that ctest's return value will be non-zero. (Same for update, confi

Re: [CMake] working around rc.exe "too many -I# options"

2009-10-20 Thread David Cole
One easy way to hack around this problem would be to use add_custom_command to invoke the rc.exe directly... Not sure if you could just include a *.res file (output from rc) as a source in an add_library or add_executable call, though. Worth a shot On Tue, Oct 20, 2009 at 3:20 PM, John Dres

Re: [CMake] configure_file behaves differently on Mac and Linux?

2009-10-22 Thread David Cole
You are not using full paths as the args to configure_file... Why not just this? configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/blessed.txt ${CMAKE_CURRENT_BINARY_DIR}/blessed.txt COPY_FILE ) On Wed, Oct 21, 2009 at 9:59 PM, James C. Sutherland < james.sutherl...@utah.edu> wrote: > I am using con

Re: [CMake] Experimental debug tests with MSVC2008 for dashboard

2009-10-22 Thread David Cole
How about "-C Debug" instead of "-C debug"? -- case matters. On Thu, Oct 22, 2009 at 4:10 AM, Stappers, F.P.M. wrote: > Hello, > > I'm facing the following problem and have some difficulty solving it. > I want to set up Nightly/Experimental tests for debug builds with MSVC2008. > After a cmake-c

[CMake] New Kitware Source newsletter available

2009-10-22 Thread David Cole
s code reuse, and is responsive to change. Utkarsh Ayachit provides a brief tutorial on adding representation plugins in ParaView. Andrew Maclean, from ACFR, discusses the use of ParaView in a mining research environment. And David Cole provides a tutorial on building external projects with CMake 2.8.

Re: [CMake] FindPkgConfig: Using *_LIBRARY_DIRS

2009-10-26 Thread David Cole
Try: set_target_properties(qlom PROPERTIES LINK_FLAGS ${GLOM_LDFLAGS}) (without the double quotes). On Mon, Oct 26, 2009 at 2:46 PM, Murray Cumming wrote: > On Fri, 2009-10-23 at 13:42 +0200, Murray Cumming wrote: > > pkg_search_module() defines SOMEPREFIX_LIBRARY_DIRS among

Re: [CMake] FindPkgConfig: Using *_LIBRARY_DIRS

2009-10-26 Thread David Cole
ct 26, 2009 at 4:50 PM, Murray Cumming wrote: > On Mon, 2009-10-26 at 16:22 -0400, David Cole wrote: > > Try: > > set_target_properties(qlom > >PROPERTIES > >LINK_FLAGS ${GLOM_LDFLAGS}) > > > > > > (without the double quotes). >

Re: [CMake] WIN32 vs WIN64

2009-10-26 Thread David Cole
On Win64, in a 32-bit calling environment, there are two environment variables with values like this: PROCESSOR_ARCHITECTURE=x86 PROCESSOR_ARCHITEW6432=AMD64 In a pure 64-bit calling environment, there is just: PROCESSOR_ARCHITECTURE=AMD64 (and no value for PROCESSOR_ARCHITEW6432) ...so: you coul

Re: [CMake] Strange build environments (MSVC and GCC both)

2009-10-27 Thread David Cole
"ExtSubProj" is the name of a custom CMake target. You should be able to: add_dependencies(mylib1 ExtSubProj) add_dependencies(mylib2 ExtSubProj) And get ExtSubProj should build first before mylib1 and mylib2. (Assuming mylib1 and mylib2 are add_library targets.) Also works with add_executable ta

Re: [CMake] install(DIRECTORY . DESTINATION include/proj FILES_MATCHINGPATTERN "*.h")

2009-10-28 Thread David Cole
On Wed, Oct 28, 2009 at 11:45 AM, Mathieu Malaterre < mathieu.malate...@gmail.com> wrote: > On Wed, Oct 28, 2009 at 4:41 PM, Tyler Roscoe wrote: > > This is a bad practice because then CMake has no way to know if there > > are new header files and can't regenerate/install correctly. Ok maybe a >

Re: [CMake] install(DIRECTORY . DESTINATION include/proj FILES_MATCHINGPATTERN "*.h")

2009-10-28 Thread David Cole
You are touching an existing header file... What happens if you add a new header file that was not there the first time you ran make install? On Wed, Oct 28, 2009 at 2:26 PM, Tyler Roscoe wrote: > On Wed, Oct 28, 2009 at 01:18:55PM -0400, David Cole wrote: > > Except: that argume

<    4   5   6   7   8   9   10   11   12   13   >