Re: [CMake] Announcements mailing list

2012-06-25 Thread Ben Medina
You could subscribe to the Kitware blog. It's more than just CMake, but they do announce all releases there. Thanks, Ben On Monday, June 25, 2012 at 4:16 PM, Craig Scott wrote: > Hi all. There's a fair amount of traffic on this list these days. Even in > digest > mode, it's not unusual to

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-21 Thread Ben Medina
gt; > On Wed, Jun 13, 2012 at 3:20 AM, Ben Medina wrote: >> >> - Using the VS2010 generator, the project files have relative paths. >> VS2012RC can load 2010 project files without modifying them. If I do >> this, compilation of individual files is successful. > >

Re: [CMake] ExternalProject_Add and Boost

2012-06-18 Thread Ben Medina
those dependencies with the appropriate find module?  I suppose > that the 'superbuild' could set the BOOST_ROOT variable (or other appropriate > variables) for my real project.  I'll play around with this idea when I get > some time, thanks for the comment! &

Re: [CMake] ExternalProject_Add and Boost

2012-06-18 Thread Ben Medina
> 4. ExternalProject_Add will download, configure and build projects at > ‘build’ time. From the documentation, this sounded like a design decision. > However, this means that you can’t use the already robust and mature > findboost() module to configure the Boost project. Would it be possib

Re: [CMake] Visual Studio rebuilding ZERO_CHECK

2012-06-13 Thread Ben Medina
For Visual Studio, I always disable the zero check project by setting CMAKE_SUPPRESS_REGENERATION to true in my CMake cache. The downside is that you have to run CMake by hand to regenerate project files. But the experience of CMake running while Visual Studio has the project loaded is quite terrib

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Ben Medina
> Yeah - I can reproduce this too (better late than never - sorry!) I've > upvoted your bug report Ben. > > Cheers, > > Fraser. > > > > On 12/06/2012 19:55, Ben Medina wrote: >> >> I've filed a bug with Microsoft: >> >> https://connect.mi

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Ben Medina
I've filed a bug with Microsoft: https://connect.microsoft.com/VisualStudio/feedback/details/748640/cannot-compile-individual-files-if-project-contains-full-path-to-file On Tue, Jun 12, 2012 at 11:20 AM, Ben Medina wrote: > Thanks! Here are the results: > > - Using the VS2010

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Ben Medina
Thanks! Here are the results: - Using the VS2010 generator, the project files have relative paths. VS2012RC can load 2010 project files without modifying them. If I do this, compilation of individual files is successful. - Using the VS11 generator, the project files have absolute paths, and compi

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Ben Medina
Thanks for the suggestion. Unfortunately, CMAKE_USE_RELATIVE_PATHS seems to have no effect for this generator. - Ben On Tue, Jun 12, 2012 at 2:21 AM, Brett Delle Grazie wrote: > On 12 June 2012 00:21, Ben Medina wrote: >> Has anyone tried the Visual Studio 2012 beta with CMake&

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Ben Medina
Thanks for checking. Full project builds work fine for me; it's just individual file compilations in the IDE that fail. - Ben On Tue, Jun 12, 2012 at 8:40 AM, Brad King wrote: > On Mon, Jun 11, 2012 at 7:21 PM, Ben Medina wrote: >> Has anyone tried the Visual Studio 2012 bet

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Ben Medina
t; On 06/11/2012 07:21 PM, Ben Medina wrote: >> Has anyone tried the Visual Studio 2012 beta with CMake's "Visual >> Studio 11" generator? I've tried with several projects, and even a >> simple project that just contains main.cpp has the same problem: >> c

[CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-11 Thread Ben Medina
Has anyone tried the Visual Studio 2012 beta with CMake's "Visual Studio 11" generator? I've tried with several projects, and even a simple project that just contains main.cpp has the same problem: compiling a single file does not work. Instead, I get this in the output window: 1>Error: Cannot bui

Re: [CMake] CMAKE_SUPPRESS_REGENERATION in VS2010

2012-06-04 Thread Ben Medina
This works for me with CMake 2.8.8 and VS2010. I have this in my CMakeCache.txt: CMAKE_SUPPRESS_REGENERATION:BOOL=ON And the ZERO_CHECK target does not appear. Which version of CMake are you using? I vaguely recall that this feature was broken a few releases back. - Ben On Fri, Jun 1, 2012 at

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-11 Thread Ben Medina
Yes, that's exactly it. I'll try to add something to the wiki. On Wed, Jan 11, 2012 at 6:01 AM, Eric Noulard wrote: > 2012/1/11 Robert Dailey : >> He probably just uses a project.vcproj.user file, and uses the >> configure_file() command on it to fill in command arguments, environment >> variable

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-10 Thread Ben Medina
I'd guess the performance of fixup_bundle will be a big pitfall if you're planning on doing this after every build. An entirely different approach is to configure a Visual Studio .user file to set the PATH environment variable (not setting it globally; just for debugging your app from within VS).

Re: [CMake] Program with Qt opening with a bash screen on windows before showing the gui...

2011-12-01 Thread Ben Medina
Qt also provides qtmain.lib to resolve the need for WinMain, in case you run into that linker error. On Wed, Nov 30, 2011 at 4:26 PM, David Cole wrote: > On Wed, Nov 30, 2011 at 6:51 PM, Renato Utsch wrote: >> Hello CMake guys... >> >> Well, I was writing a portable program using CMake that uses

Re: [CMake] Boost external project doesn't build with VS2010 generator

2011-10-26 Thread Ben Medina
, 2011 at 9:00 AM, David Cole wrote: > On Wed, Oct 26, 2011 at 11:56 AM, Ben Medina wrote: >> David, >> >> Yes, adding "call" to the front of the command works. Thanks! Would be >> great to get that fixed for 2.8.7, as I spent a good portion of >> yesterda

Re: [CMake] Boost external project doesn't build with VS2010 generator

2011-10-26 Thread Ben Medina
t;call " to the front of the command works in this > case. > > Thanks, > David > > On Tue, Oct 25, 2011 at 5:30 PM, Ben Medina wrote: >> >> Hello all, >> >> I'm trying to build Boost as an external project, but it won't build >> if

[CMake] Boost external project doesn't build with VS2010 generator

2011-10-25 Thread Ben Medina
Hello all, I'm trying to build Boost as an external project, but it won't build if I use the VS2010 generator. I've whittled the code down to the following CMakeLists.txt: cmake_minimum_required(VERSION 2.8) project (boost-external) set (Boost_Source "E:/boost_1_47_0") include(ExternalProject)

Re: [CMake] ExternalProject: avoiding rebuilds

2011-10-11 Thread Ben Medina
When would this behavior be desirable? On Mon, Sep 26, 2011 at 10:37 AM, Ben Medina wrote: > John is right. The external project may be at the bottom of a chain of > (my own) project dependencies. I need to preserve the ability to > easily rebuild just my projects (and their depe

[CMake] How to change the "Start in" directory for Windows Start menu shortcuts

2011-10-04 Thread Ben Medina
Hello all, We're using NSIS via CPack for our Windows installer. One thing we'd like to change is the "Start in" directory for Windows Start menu shortcuts. Currently, it appears to default to the installation directory, but that's not very useful: users aren't going to be saving files underneath

Re: [CMake] CMake 2.8.6 available for download

2011-10-04 Thread Ben Medina
Excellent! Preliminary VS11 support makes me very happy. On Tue, Oct 4, 2011 at 12:30 PM, David Cole wrote: > On behalf of myself, Ken, Bill, Brad, Alex, Zach, Ben and the rest of > the CMake team from all around the world, we are pleased to announce > that CMake 2.8.6 is now available for downlo

Re: [CMake] ExternalProject: avoiding rebuilds

2011-09-26 Thread Ben Medina
It's the same as "make clean; make", so it's not just a Visual Studio thing. On Mon, Sep 26, 2011 at 10:45 AM, Rolf Eike Beer wrote: > Am Montag, 26. September 2011, 10:37:57 schrieb Ben Medina: >> John is right. The external project may be at the bottom of a

Re: [CMake] ExternalProject: avoiding rebuilds

2011-09-26 Thread Ben Medina
l see where I'm coming from. Perhaps I need to file a feature request on Mantis. On Sat, Sep 24, 2011 at 2:32 AM, John Drescher wrote: > On Sat, Sep 24, 2011 at 4:11 AM, Rolf Eike Beer wrote: >> Am Freitag, 23. September 2011, 16:26:46 schrieb Ben Medina: >>> Hello all,

[CMake] ExternalProject: avoiding rebuilds

2011-09-23 Thread Ben Medina
Hello all, I'm trying to adopt greater usage of ExternalProject in my project. One problem I'd like to resolve is spurious rebuilds of external projects. For example, I'd like to build CLAPACK as an external project, so I do something like this: ExternalProject_Add (clapack URL ${tarball_loc

Re: [CMake] Running unit test as part of the build

2011-09-12 Thread Ben Medina
On Sat, Sep 10, 2011 at 9:10 AM, Erik Johansson wrote: > How does one get cmake to run the unit test as part of the build so that: > - If the unit test fails, the build fails. > - If the unit test has failed, and make is run again, the unit test > will run again. > - If the unit test has succeede

Re: [CMake] Link flags not applied to static library

2011-06-22 Thread Ben Medina
So that the answer stays on the list: One must use the STATIC_LIBRARY_FLAGS property, rather than LINK_FLAGS, for static libraries. On Tue, Jun 21, 2011 at 3:12 PM, Ben Medina wrote: > Since I got no feedback, I assume it's a bug. I've filed it here: > > 0012295: LINK_F

Re: [CMake] Link flags not applied to static library

2011-06-21 Thread Ben Medina
Since I got no feedback, I assume it's a bug. I've filed it here: 0012295: LINK_FLAGS_RELEASE has no effect on static libraries for MSVC generators http://www.cmake.org/Bug/view.php?id=12295 On Mon, Jun 13, 2011 at 11:50 AM, Ben Medina wrote: > Hello all, > > I'm

[CMake] Link flags not applied to static library

2011-06-13 Thread Ben Medina
Hello all, I'm using CMake 2.8.4 and am seeing an odd differenc between static and shared libraries in regard to the LINK_FLAGS property. In particular, I'm enabling "Whole program optimization" in Visual Studio 2010, which is done by add /GL as a compiler flag and /LTCG as a linker flag for the r

Re: [CMake] VS Project environment settings

2011-01-14 Thread Ben Medina
These settings are stored in a separate "user" file, rather than in the main vc[x]proj file. So one solution is to have CMake create the user file for you with whatever settings you want. We are doing this via configure_file, using a generic user file as a template. - Ben On Tue, Jan 11, 2011 at

Re: [CMake] Regex help: multi-line matching and matching backslashes

2011-01-11 Thread Ben Medina
uot;) > foreach(match ${matches}) >   message("match='${match}'") > endforeach() > > > > On Mon, Jan 10, 2011 at 5:38 PM, Fraser Hutchison > wrote: >> >> I think if you remove the double "\\" it should work, i.e. use: >>

Re: [CMake] Regex help: multi-line matching and matching backslashes

2011-01-10 Thread Ben Medina
ze "\s" for white space. Try "[ > \\t\\n\\r]" instead of \\s. > > But. watch out for white space after "(" and before ")" too. You might > miss some lines if they have spaces there. > > > On Fri, Jan 7, 2011 at 2:55 PM, Ben Medina wro

[CMake] Regex help: multi-line matching and matching backslashes

2011-01-07 Thread Ben Medina
I need to parse a C++ file for Google Test macros. (I'm aware the GTEST_ADD_TESTS provided by FindGtest.cmake, but I need the test list for my own purposes). I had been using a regex similar to the one in GTEST_ADD_TESTS to match tests: string (REGEX MATCHALL "TEST_?F?\\([A-Za-z_0-9 ,]+)\\)" found

Re: [CMake] fixup_bundle: installing multiple executables that depend on the same libraries

2010-12-31 Thread Ben Medina
. > > It's all sort of roll-your-own, though. There's no other existing > support to my knowledge... > > > > On Fri, Dec 31, 2010 at 2:03 PM, Ben Medina wrote: >> Hello all, >> >> My project is sprouting new executables, and the simple use case

[CMake] fixup_bundle: installing multiple executables that depend on the same libraries

2010-12-31 Thread Ben Medina
Hello all, My project is sprouting new executables, and the simple use case of using fixup_bundle is no longer sufficient. At the moment, I have: 1. A Qt-based gui application. 2. A command line application. Both of these apps share common 3rdparty library dependencies (boost, Qt, etc.). And I an

Re: [CMake] copy_resolved_item_into_bundle doesn't copy when I want it to

2010-12-21 Thread Ben Medina
asonable given the benefit > that fixup_bundle provides. As always, I'm open to discussion and > suggestions if anybody has ideas for improving BundleUtilities. > > > HTH, > David > > > On Mon, Dec 20, 2010 at 6:44 PM, Ben Medina wrote: >> >> Hello

[CMake] copy_resolved_item_into_bundle doesn't copy when I want it to

2010-12-20 Thread Ben Medina
Hello all, I'm using fixup_bundle as part of my installation rules. One problem I've run into is that if you build the install target multiple times, fixup_bundle (or, more specifically, copy_resolved_item_into_bundle) won't copy a library over if it's coming from the same location. This causes a

Re: [CMake] Makefile to CMakeLists.txt (GTEST)

2010-12-01 Thread Ben Medina
Note that recent versions of gtest come with a CMakeLists.txt, so you can just use add_subdirectory on the gtest source tree. - Ben On Wed, Dec 1, 2010 at 7:59 AM, Kevyn-Alexandre Paré wrote: > Philip, > > Thx for the reply. Neither of these solutions change a thing. > > I try to play with ADD_C

[CMake] Problem with custom target dependencies on VS2010

2010-10-26 Thread Ben Medina
Hi all, In our builds, we use custom targets to copy library headers to an include directory from which clients of the library then #include from. This works for VS2008 but is broken in VS2010 (using CMake 2.8.3 rc3). Here is a small example: --- CMakeLists.txt: -

Re: [CMake] Eliminate Debug/Release directories and name executables based on configuration

2010-08-10 Thread Ben Medina
CMake has explicit support for this, rather than using a prefix (which doesn't work in VS2010): http://www.cmake.org/Bug/view.php?id=9163 - Ben On Mon, Aug 9, 2010 at 12:50 PM, Keith Gardner wrote: > What you need to do to get rid of the Debug/Release directories is set the > prefix property fo

[CMake] Fwd: Eliminate Debug/Release directories and name executables based on configuration

2010-08-09 Thread Ben Medina
Sorry, meant to keep this on the list. - Ben -- Forwarded message -- From: Ben Medina Date: Mon, Aug 9, 2010 at 12:45 PM Subject: Re: [CMake] Eliminate Debug/Release directories and name executables based on configuration To: James Ihrig I believe this is what the

Re: [CMake] VS-C++ Express Version

2010-05-14 Thread Ben Medina
Right, that's bug 0010481, for which we're waiting a fix. We also are waiting on 10502 and 0010589. There seems to be some disconnect , because 0010481 is marked as new and unassigned, but you guys have already fixed it. I'm curious if any of the Kitware folks have tried building ParaView with VS2

Re: [CMake] [CMAKE] Handling External Libraries and Resources

2010-05-13 Thread Ben Medina
We've struggled with the same issue, and for out latest project, we've switched to using fixup_bundle to handle the installation of 3rd party lib dependencies, rather than copying them into the build tree as a build step. To ensure that developers can still easily launch the app for debugging, on

[CMake] Can't double-click to launch Mac app bundle

2010-04-23 Thread Ben Medina
Hello all, I have a Qt-based Mac app that I build with CMake. I run fixup_bundle on it to copy all pre-requisites over during the install step. However, when I double-click on the .app, the application does not launch. It's icon bounces a few times in the dock, then goes away with no errors. If I

Re: [CMake] Creating a Mac bundle for an app dependent on Qt and ParaView

2010-04-22 Thread Ben Medina
, Ben Medina wrote: > Hello all, > > I am trying to package an app on the Mac into an app bundle. This app > depends on Qt and ParaView, so I have code like this: > >    # directories to look for dependencies: Qt, ParaView/VTK >    set(DIRS "${QT_LIBRARY_DIRS};${PARAVIEW_LIBR

[CMake] Creating a Mac bundle for an app dependent on Qt and ParaView

2010-04-21 Thread Ben Medina
Hello all, I am trying to package an app on the Mac into an app bundle. This app depends on Qt and ParaView, so I have code like this: # directories to look for dependencies: Qt, ParaView/VTK set(DIRS "${QT_LIBRARY_DIRS};${PARAVIEW_LIBRARY_DIRS}") install(CODE " inclu

Re: [CMake] Minimal Info.plist

2010-04-20 Thread Ben Medina
ght at that time, including the info.plist - you can then use this > with DragNDrop to have a DMG containing one or more app bundles for easy > install. > > Ryan > > On 04/19/2010 07:04 PM, Ben Medina wrote: >> >> Hello all, >> >> I'm using the CP

[CMake] Minimal Info.plist

2010-04-19 Thread Ben Medina
Hello all, I'm using the CPack Bundle generator to package my application on the Mac (assuming this is preferable to the DragNDrop generator according to http://www.cmake.org/Wiki/CMake:CPackPackageGenerators). One requirement is providing an Info.plist file, but I don't know what information is r

Re: [CMake] CMake 2.8.1 + Qt/Cocoa + OS X Problem -- qt_menu.nib not getting copied

2010-04-19 Thread Ben Medina
Hi Mike, I would be interested in taking a look at your git repo. Where is it located? Thanks, Ben On Fri, Apr 16, 2010 at 7:36 AM, Michael Jackson wrote: > Lets take a deeper look at what is needed for an OS X bundle, cmake and Qt. > >  The issues with making an OS X app bundle "relocatable" a

Re: [CMake] Problems with ExternalProject_Add and tar.gz files

2010-04-02 Thread Ben Medina
argument > > It seem somehow related to some kind of tar version or content: > > for example it happened to me also getting the latest pycrypto > http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.1.0.tar.gz > > Probably we should issue a bug > > HTH > > Ben Me

[CMake] Problems with ExternalProject_Add and tar.gz files

2010-04-02 Thread Ben Medina
I'm trying to get ExternalProject_Add to work, using a tar.gz file as the source. My experiment thus far is with boost, and my code looks like this: include (ExternalProject) set (boost_libs_to_build program_options) ExternalProject_Add( boost URL http://sodium.resopho

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-18 Thread Ben Medina
On Wed, Feb 17, 2010 at 7:39 AM, Bill Hoffman wrote: > CMake 2.8.1 RC 3 is ready to try: > > http://www.cmake.org/files/v2.8/?C=M;O=D > > Please try your projects with it.   If you find any issues, let me know. I > think we are getting very close to the actual release.  Pretty much > regressions o

[CMake] Problems with 2.8.0 and VS 10 generator: CMAKE_CFG_INTDIR, UNC paths, and QT_LIBRARIES

2009-11-17 Thread Ben Medina
Hello, I'm doing some testing of VS 2010 B2 with CMake 2.8.0, and I've run into several problems: 1. CMAKE_CFG_INTDIR is set to $(ConfigurationName), a macro which no longer exists in VS 2010. According to the CMake docs (http://www.cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_CFG_INTD