[CMake] Fwd: Setting Build properties for VS 2008

2011-03-17 Thread John Drescher
-- Forwarded message -- From: John Drescher dresche...@gmail.com Date: Thu, Mar 17, 2011 at 5:43 AM Subject: Re: [CMake] Setting Build properties for VS 2008 To: Dan Furtney dfurt...@cox.net On Wed, Mar 16, 2011 at 11:25 PM, Dan Furtney dfurt...@cox.net wrote: Is there a way

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

2011-03-29 Thread John Drescher
http://public.kitware.com/Bug/view.php?id=11206 John ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at:

[CMake] Disable buffer security check in visual studio /GS-

2011-04-20 Thread John Drescher
After profiling my Visual Studio 2005 application I see that over 5% of the execution time in the Release build was spent doing buffer security checks. I found the following link for CMake support http://www.cmake.org/pipermail/cmake-commits/2008-March/003844.html however I do not understand

Re: [CMake] Disable buffer security check in visual studio /GS-

2011-04-20 Thread John Drescher
On Wed, Apr 20, 2011 at 12:55 PM, John Drescher dresche...@gmail.com wrote: After profiling my Visual Studio 2005 application I see that over 5% of the execution time in the Release build was spent doing buffer security checks. I found the following link for CMake support http://www.cmake.org

Re: [CMake] unscribe

2011-04-26 Thread John Drescher
Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and

Re: [CMake] manifest version mismatch with VS 2008 and InstallRequiredSystemLibraries

2011-05-03 Thread John Drescher
On Tue, May 3, 2011 at 11:43 AM, Tyler ty...@cryptio.net wrote: My project makes use of the CMake/CPack module InstallRequiredSystemLibraries to package Microsoft Visual C Runtime libraries with other build artifacts. Despite this and despite the presence of appropriate-looking files showing

Re: [CMake] Testing and DLLs

2011-05-04 Thread John Drescher
I am curious whether there is a common way of dealing with unit tests when the actual project to be tested is a DLL? The issue I am facing is a common Windows issue where the required DLL is not found in the path. I tried to put all binaries in the same directory by modifying

Re: [CMake] Testing and DLLs

2011-05-04 Thread John Drescher
On Wed, May 4, 2011 at 12:25 PM, Michael Jackson mike.jack...@bluequartz.net wrote: Funny, I did the same thing using pure CMake code because I couldn't figure out batch files. BTW, I started from your example of your macro to create my macro. Thanks. John

Re: [CMake] How do you go about building the cmake-gui from source in 2.8.4?

2011-05-13 Thread John Drescher
Yeah, I figured that part out indirectly. I had to install the QT4 SDK to get the necessary bits, but rcc.exe (Windows XP, desktop component of QT) fails for no obvious reason. Did you build that from scratch using Visual Studio 2005 and not any other compiler or version? Here is what I

Re: [CMake] Forcing CMake to never search install path

2011-05-15 Thread John Drescher
I've been struggling to find a way to prevent CMake from using CMAKE_INSTALL_PREFIX in any of its FIND_* routines.  Generally speaking, stripping it out of CMAKE_SYSTEM_PREFIX_PATH seems to work, but we're still getting situations on Windows where it is finding old libraries from previous

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread John Drescher
If you don't care for the macros and want to set up the include-directories and defines yourself, no. Also, it is common to find_package(Qt4) in the top-level CMakeLists.txt file, but then include QT_USE_FILE only in specific subdirectories, where Qt is actually used. I have started doing

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

2011-06-09 Thread John Drescher
I've managed to get an NSIS project up and running in VIsual Studio with CPack, but I can't figure out how to determine which configuration type is being built.  Is it possible to write up a CMakeLists that will run through different conditionals based off of the Build Configuration Type

[CMake] Dealing with down servers when using FindSubversion.cmake

2011-06-13 Thread John Drescher
I use code like the following to append a version to my applications based on the current svn rev. FIND_PACKAGE(Subversion) IF(Subversion_FOUND) Subversion_WC_INFO(${PROJECT_SOURCE_DIR} Project) MESSAGE(Current revision is ${Project_WC_REVISION})

Re: [CMake] Dealing with down servers when using FindSubversion.cmake

2011-06-13 Thread John Drescher
On Mon, Jun 13, 2011 at 3:16 PM, Rolf Eike Beer e...@sf-mail.de wrote: Am Montag, 13. Juni 2011, 13:02:34 schrieb John Drescher: I use code like the following to append a version to my applications based on the current svn rev. FIND_PACKAGE(Subversion) IF(Subversion_FOUND

Re: [CMake] CMake 2.8.5-rc1 ready for testing!

2011-06-15 Thread John Drescher
On Wed, Jun 15, 2011 at 3:31 AM, Andrea Galeazzi galea...@korg.it wrote: I think it would be great if http://public.kitware.com/Bug/view.php?id=11258 could be fixed in 2.8.5. Without such a fix VS2010 will keep on being useless. Hmm. I have been using VS2010 for a few weeks (not primarily I

Re: [CMake] How does cmake find libraries?

2011-06-16 Thread John Drescher
   [ 74%] Built target test_sethandler    make[2]: *** No rule to make target `/usr/local/lib/libpng.dylib', needed by `tests/na/common/test_common'.  Stop.    make[1]: *** [tests/na/common/CMakeFiles/test_common.dir/all] Error 2 The obvious reason is that /usr/local/lib/libpng.dylib doesn't

Re: [CMake] CMake Wiki spammed

2011-06-30 Thread John Drescher
On Thu, Jun 30, 2011 at 6:27 PM, Moreland, Kenneth kmo...@sandia.gov wrote: It looks like the CMake Wiki recently got spammed.  I see several links were recently added that do not belong (head lice treatment?).  Even more annoying, it looks like the spammer removed some links that do belong

Re: [CMake] CMake Wiki spammed

2011-06-30 Thread John Drescher
I think I fixed it. John On Thu, Jun 30, 2011 at 7:30 PM, David Cole david.c...@kitware.com wrote: I have forwarded this to our IT team... Hopefully it's not too hard to recover from for them. Thanks, David On Thu, Jun 30, 2011 at 7:24 PM, John Drescher dresche...@gmail.com wrote

Re: [CMake] How to create a 64-bit Windows build of cmake?

2011-08-01 Thread John Drescher
On Mon, Aug 1, 2011 at 8:34 PM, John R. Cary c...@txcorp.com wrote: I believe I have followed what I have found on the web for building a Win64 version of CMake.  I have downloaded the win32 version and used it to configure the cmake source. I used the Visual Studio 9 2008 Win64 generator.

Re: [CMake] How to create a 64-bit Windows build of cmake?

2011-08-01 Thread John Drescher
On Mon, Aug 1, 2011 at 10:02 PM, John R. Cary c...@txcorp.com wrote: On 8/1/11 7:04 PM, John Drescher wrote: On Mon, Aug 1, 2011 at 8:34 PM, John R. Caryc...@txcorp.com  wrote: I believe I have followed what I have found on the web for building a Win64 version of CMake.  I have downloaded

Re: [CMake] access absolute path of parent directory

2011-08-09 Thread John Drescher
  I've been trying to access the parent directory by using CMakeLists.txt. However, the  ../ or .. or /../ notations don't access said parent directory. Can you show a small example? I know this has worked for me. John ___ Powered by

[CMake] Fwd: access absolute path of parent directory

2011-08-09 Thread John Drescher
-- Forwarded message -- From: John Drescher dresche...@gmail.com Date: Tue, Aug 9, 2011 at 4:56 PM Subject: Re: [CMake] access absolute path of parent directory To: Vinay Raj Hampapur vinayraj.hampa...@gmail.com On Tue, Aug 9, 2011 at 4:24 PM, Vinay Raj Hampapur vinayraj.hampa

Re: [CMake] Fwd: [CMake 0012398]: IF infamous variable/string functionality fails to work with macro arguments

2011-08-15 Thread John Drescher
On Mon, Aug 15, 2011 at 11:26 AM, David Cole david.c...@kitware.com wrote: Thanks, Michael... I'll give this another week or so here on the mailing list (and in the bug tracker) to gather feedback. If I don't hear anything else, I'll consider changing some documentation to clarify the

Re: [CMake] deploy VS2008 application

2011-08-27 Thread John Drescher
The application I deployed is a DEBUG version and I have include(InstallRequiredSystemLibraries) in my CMakeLists.txt. However, msvc(m/p/r)90.dll instead of msvc(m/p/r)90d.dll are copied to the destination folder.  Any idea why this happened? Do you realize that it is a violation of your

Re: [CMake] Why do jom/nmake generators require cl to build with mingw?

2011-09-15 Thread John Drescher
On Thu, Sep 15, 2011 at 8:08 AM, John R. Cary c...@txcorp.com wrote: I was trying to configure a project to use jom or name with the mingw compilers. I was configuring with cmake \  -DCMAKE_INSTALL_PREFIX:PATH=C:/winsame/volatile-mingw/txphysics-r1504-ser \  

Re: [CMake] User generated header file

2011-09-19 Thread John Drescher
Do you want the user to manually add the header, or do you want cmake to create it? User will manually add it before compile, so Eric mentioned setting the GENERATED property to true, it works. The fact is it works the way you want, which is good, but beside that why would it be better

Re: [CMake] User generated header file

2011-09-19 Thread John Drescher
On Mon, Sep 19, 2011 at 14:13, John Drescher dresche...@gmail.com wrote: My question is can't you have CMake generate the header for the user instead of them supplying a file? Is it just defines in this header? It's basically user/site-specific defines that is based on user preferences

Re: [CMake] ExternalProject: avoiding rebuilds

2011-09-24 Thread John Drescher
On Sat, Sep 24, 2011 at 4:11 AM, Rolf Eike Beer e...@sf-mail.de wrote: Am Freitag, 23. September 2011, 16:26:46 schrieb 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.

Re: [CMake] simple cmake example

2011-10-07 Thread John Drescher
On Fri, Oct 7, 2011 at 6:00 PM, Tim Coddington tim.codding...@rteamworks.com wrote: Hi   I recently started working with open source code that uses cmake for build.  I've been able to make do since most of the CMakeLists.txt files are provided or specific instructions are given.   I'm about

Re: [CMake] simple cmake example

2011-10-08 Thread John Drescher
On Fri, Oct 7, 2011 at 11:23 PM, Tim Coddington tim.codding...@rteamworks.com wrote: Thank you.  After adapting your file ccmake complains about line 7:  include(${MRPT_USE_FILE}) CMake Error at CMakeLists.txt:7 (include):   include called with wrong number of arguments.  Include only takes

Re: [CMake] Common CMake setup for several projects

2011-10-14 Thread John Drescher
On Fri, Oct 14, 2011 at 7:33 AM, Paul Hansen paul.hansen.n...@gmail.com wrote: Hi Is it possible to make a common CMake setup that can be used in several projects? The projects are independant but do use common libraries. Would be nice to set this up in one place and not in the

Re: [CMake] Solution directory support

2011-10-24 Thread John Drescher
On Mon, Oct 24, 2011 at 6:14 PM, Robert Dailey rcdai...@gmail.com wrote: Does CMake support the creation of solution directories yet? Also the ability to assign targets to solution directories would be essential. The main reason I would use them is to organize/hide CTest projects so that they

Re: [CMake] Precompiled header support in Visual Studio?

2011-10-25 Thread John Drescher
On Tue, Oct 25, 2011 at 11:43 AM, Robert Dailey rcdai...@gmail.com wrote: Bumping this in hopes for some help! Your version is different than the stackoverflow example Line SET(Sources ${${SourcesVar}}) should be SET(Sources ${${source}}) since you renamed the SourcesVar parameter. John

Re: [CMake] Precompiled header support in Visual Studio?

2011-10-25 Thread John Drescher
On Tue, Oct 25, 2011 at 12:01 PM, John Drescher dresche...@gmail.com wrote: On Tue, Oct 25, 2011 at 11:43 AM, Robert Dailey rcdai...@gmail.com wrote: Bumping this in hopes for some help! Your version is different than the stackoverflow example Line SET(Sources ${${SourcesVar}}) should

Re: [CMake] Setting Platform (Win32 or x64) for Visual Studio in CMake

2011-10-26 Thread John Drescher
On Wed, Oct 26, 2011 at 10:17 AM, Ludovic Hoyet lho...@gmail.com wrote: Just to know, is there a way to set the platform in the CMakeList? At the moment if I select VS_XXX if creates uses the Win32 platform, and the x64 is used if I select VS_XXX x64. I would like to set a variable to the

Re: [CMake] cl is not able to compile -VS2010 C1060: compiler out of heap space

2011-10-27 Thread John Drescher
On Thu, Oct 27, 2011 at 8:35 AM, Nelis neliswill...@gmail.com wrote: Hi CMake 2.8.6, newly installed VS2010, previously VS2005 (dir renamed for now), XPSP3, swap space 5GB. Running configure freshly after the cache is deleted, on two different CMakeLists project files. CMake Error at

Re: [CMake] cl is not able to compile -VS2010 C1060: compiler out of heap space

2011-10-27 Thread John Drescher
On Thu, Oct 27, 2011 at 8:52 AM, Nelis neliswill...@gmail.com wrote: Hi John I have 5 versions of Visual Studio installed on my 64 bit windows 7 box at work and CMake-2.6.1 still works with the versions of VS I tested (2008,2010) Did you rename VS2005 before or after you had this problem?

Re: [CMake] cl is not able to compile -VS2010 C1060: compiler out of heap space

2011-10-27 Thread John Drescher
On Thu, Oct 27, 2011 at 9:10 AM, Nelis neliswill...@gmail.com wrote: Hi John Yes installed SP1 immediately after the base system. No other updates though. Strange behaviour that the clean cache compile should differ from the filled cache compile. BTW, thanks for your time. What generator

Re: [CMake] Need a full list of reserved words

2011-10-30 Thread John Drescher
On Sun, Oct 30, 2011 at 3:14 PM, Robert Dailey rcdai...@gmail.com wrote: I'm trying to help the Notepad++ author update his list of keywords for CMake since it is pretty out of date, however I don't want to manually have to type up a list of all commands, variables, properties, and

Re: [CMake] VS2003 and reloading projects

2011-11-10 Thread John Drescher
I've been struggling with a real nuisance lately. When I run a build in VS2003 and my CMake scripts are out of date, it regenerates and then prompts me if I would like to stop the build reload the projects. Once I do that, my projects reload but for some reason their settings are still out of

Re: [CMake] VS2003 and reloading projects

2011-11-10 Thread John Drescher
That's fine dandy but I have a solution with 120+ projects that each have SCC bindings... that makes them load especially slow! I wish VS was smart enough to just reload the changed projects properly... :( I think also if you hit cancel on the CMake dialog. Then wait till the projects are

Re: [CMake] Visual Studio 10 property pages for single source file gone with CMake 2.8.5 and 2.8.6

2011-11-11 Thread John Drescher
In order to work around http://public.kitware.com/Bug/view.php?id=12570 I think it should be sufficient to have a different drive *letter* when specifying where to build the binaries than the drive letter(s) of the path names of the source files. So I guess one might work around this issue by

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

2011-11-11 Thread John Drescher
On Fri, Nov 11, 2011 at 3:24 PM, Robert Dailey rcdai...@gmail.com wrote: According to the root CMakeLists.txt in cmake, there is no way to do this on Windows. I'll probably have to build it through Cygwin itself, assuming UNIX is truthy when using Cygwin.   # Use curses?   IF (UNIX)     #

Re: [CMake] QtCreator generator?

2011-11-11 Thread John Drescher
There should have been a *.sln file that you open.? Not for a Code Blocks -NMake Makefile project. John -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at:

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

2011-11-12 Thread John Drescher
It basically comes down to the inconvenience of having to do that with Visual Studio being outweighed (considerably!) by the cross-platform benefits of CMake.  (It does help that none of our developers use Windows as their primary development platform, so it only comes up when we make sure

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

2011-11-12 Thread John Drescher
On Sat, Nov 12, 2011 at 11:08 AM, Bill Hoffman bill.hoff...@kitware.com wrote: On 11/12/2011 10:51 AM, John Drescher wrote: It basically comes down to the inconvenience of having to do that with Visual Studio being outweighed (considerably!) by the cross-platform benefits of CMake.  (It does

Re: [CMake] VC2010 Express crashing

2011-11-21 Thread John Drescher
Yes it is 100% reproducible. I don't know if telling someone to send reports to Microsoft and have them fix the problem is the most reasonable solution. Isn't it a Microsoft bug? I mean even if the sln file was somehow wrong Visual Studio should not crash when using it. John -- Powered by

Re: [CMake] Call to QTextStream(stdin) crashes the program built by CMake and Visual Studio

2011-11-23 Thread John Drescher
On Wed, Nov 23, 2011 at 8:53 AM, Yegor Derevenets yegor.dereven...@gmail.com wrote: Hi All, The following Qt program crashes with access violation when being built on Windows by Microsoft Visual Studio 2010 using cmake 2.8.6 and doesn't crash when being built using qmake: #include cstdio

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

2011-11-23 Thread John Drescher
On Wed, Nov 23, 2011 at 12:30 PM, Stephen Kelly steve...@gmail.com 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 like to don't export any symbols but only the one I

Re: [CMake] VS2005 and cmake

2011-11-25 Thread John Drescher
On Fri, Nov 25, 2011 at 3:55 AM, Tom Deblauwe tom.debla...@traficon.com wrote: Hello, Are you sure that is not some kind of extension or plugin that you are using? I don't think you can reload all the projects at once in VS2005? Best regards, Tom, CMake installs a visual studio macro that

Re: [CMake] parallel build using cmake --build?

2011-11-26 Thread John Drescher
On Fri, Nov 25, 2011 at 10:16 PM, Steve M. Robbins st...@sumost.ca wrote: Hi, To build VTK on our windows build server, I wrote a small batch script that invokes cmake --build. My developer machine is multicore; is there a way to get cmake --build to run multiple jobs? On windows, I use

Re: [CMake] configuration of VTK 5.8 using cmake 2.6 on 64-bit windows 7

2011-12-08 Thread John Drescher
On Thu, Dec 8, 2011 at 10:51 PM, rakesh patil prakeshoffic...@gmail.com wrote: Hello, I want to compile VTK 5.8 for 64bit windows machine. I have cmake 2.6 for 32-bit windows. I downloaded vtk source code from www.vtk.org website. While configuring, I select Visual Studio 9(64) and continued

Re: [CMake] CPack - Windows 7 x64

2012-01-03 Thread John Drescher
On Tue, Jan 3, 2012 at 8:05 PM, Nicholas Yue yue.nicho...@gmail.com wrote: Hi,    I am building and installing full 64bit applications and libraries.    When I package it up as an installer via NSIS, it installs to C:\Program Files (x86)\    What CPACK_ variables do I need to inform cpack

Re: [CMake] Visual Studio Generator: Unable to show property page for custom build tool

2012-01-04 Thread John Drescher
On Wed, Jan 4, 2012 at 4:30 PM, Michael Guerrero insom...@yahoo.com wrote: Hi, I’ve been experimenting with using Visual Studio’s “Custom Build Tool” per cpp file to perform some specialized operations.  However, the property page is not visible (not editable) when I generate a project with

Re: [CMake] Some issues with visual studio

2012-01-08 Thread John Drescher
On Sun, Jan 8, 2012 at 10:30 AM, Mateusz Loskot mate...@loskot.net wrote: On 8 January 2012 15:21, Renato Utsch renatout...@gmail.com wrote: Yes, but I want to be able to change with CMake, but if I can't do that, at least I want to be able to set the default to the Release version :X You

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

2012-01-09 Thread John Drescher
2012/1/9 Hauke Heibel hauke.hei...@googlemail.com: Hi Michael, What I do is running a custom command which itself executes a CMake script. Usually similar to add_custom_command(TARGET CopyDlls  COMMAND ${CMAKE_COMMAND}        -DMSVC_BUILD_CONFIG_DIR=${CMAKE_CFG_INTDIR}        

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

2012-01-09 Thread John Drescher
Awesome! Sometimes you just need to know what's already available to solve your problems in a very elegant way. I'll have a look at these bundles and probably switch to them instead of maintaining my own stuff! Same here. I have spent a few hours writing scripts that keep a list of

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread John Drescher
On Mon, Jan 9, 2012 at 1:56 PM, Óscar Fuentes o...@wanadoo.es wrote: Michael Hertling mhertl...@online.de writes: On 01/09/2012 02:34 PM, David Cole wrote: No trick, but to avoid this, perhaps we should change the --build handler to run the cmake configure generate step before calling out

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

2012-01-10 Thread John Drescher
On Tue, Jan 10, 2012 at 3:17 PM, Ben Medina ben.med...@gmail.com wrote: I'd guess the performance of fixup_bundle will be a big pitfall if you're planning on doing this after every build. One other approach is not making it a post build step but a custom target that the user can build only

Re: [CMake] How to add CMake includes and libraries to Visual Studio Solution?

2012-01-16 Thread John Drescher
Where did you define your INCLUDE_DIRECTORIES? I also tried to set an absolute path instead of using the CMake list, same result. Nothing is set... For me this works as well. Define INCLUDE_DIRECTORIES anywhere above the ADD_EXECUTABLE or ADD_LIBRARY and visual studio will use it. -- John M.

Re: [CMake] How to add CMake includes and libraries to Visual Studio Solution?

2012-01-16 Thread John Drescher
On Mon, Jan 16, 2012 at 2:44 PM, hellho...@binary-revolution.org wrote: Hmm this is strange, INCLUDE_DIRECTORIES is used but no effect. I try to set:  INCLUDE_DIRECTORIES(C:/binrev/development/boost/1.47/) But the additional directory entry of my MSVC solution holds only the default

[CMake] Fwd: building libs and specifying addition folders

2012-01-18 Thread John Drescher
-- Forwarded message -- From: John Drescher dresche...@gmail.com Date: Thu, Jan 19, 2012 at 1:00 AM Subject: Re: [CMake] building libs and specifying addition folders To: Dev Guy devguy...@gmail.com On Wed, Jan 18, 2012 at 10:57 PM, Dev Guy devguy...@gmail.com wrote: Hi, I am

Re: [CMake] compiler flags visual studio

2012-01-24 Thread John Drescher
On Tue, Jan 24, 2012 at 8:33 AM, Tom Deblauwe tom.debla...@traficon.com wrote: Hello, What compiler flags do you need to enable if you want to use the possibility to have something like this in your code: char Image[width(), height()]; This worked before with my compiler(visual studio

Re: [CMake] Visual Studio 2010 is crashing when building project

2012-01-26 Thread John Drescher
I am using CMake 2.8.7 and generating for VS2010. When I build any project, visual studio crashes. I think it might be because of ZERO_CHECK. I have not seen any Visual Studio 2010 crashes from cmake based projects and I have used VS2010 for over 1 year on 5 to 10 machines mostly in x64. I am

Re: [CMake] Visual Studio 2010 is crashing when building project

2012-01-26 Thread John Drescher
Is it normal for the C++ project icon in the solution explorer to look like web projects? I see a globe around angle brackets in the small icon. No. I do not see that at all ever. John -- Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] 'Parallel' CMakeLists.txt?

2012-01-31 Thread John Drescher
This sounds like a job for distributed version control.  In Git you could keep a branch with your CMakeLists.txt changes and keep merging from the main branch to keep up with the other changes. That is basically what I do when I make changes that I know will break the build. I create a new

Re: [CMake] CMAKE 2.8.5 - CMAKE_GENERATOR Bug?

2012-02-02 Thread John Drescher
On Thu, Feb 2, 2012 at 12:33 PM, Sarnath K - ERS, HCLTech k_sarn...@hcl.com wrote: All, I was trying to use the external project add feature to add a 32-bit VC++ project on a 64-bit parent build system. However, I ran into problems while compiling the 32-bit project. “devenv” used to

[CMake] Fwd: Portable revision lookup?

2012-02-02 Thread John Drescher
-- Forwarded message -- From: John Drescher dresche...@gmail.com Date: Thu, Feb 2, 2012 at 4:36 PM Subject: Re: [CMake] Portable revision lookup? To: Oliver kfsone Smith osm...@playnet.com On Thu, Feb 2, 2012 at 4:10 PM, Oliver kfsone Smith osm...@playnet.com wrote: Right now I

Re: [CMake] What can cause cmake (2.8.4 and 7) to fail after upgrade of Visual Studio 10 Express to Professional? stackoverflow question. posting here

2012-02-13 Thread John Drescher
On Mon, Feb 13, 2012 at 12:15 AM, Nicky Perian nickyper...@gmail.com wrote: Solved by uninstalling all versions of Visual Studio and reinstalling Visual Studio 10 Professional. Although I have no idea why you had this problem, I have 5 versions of Visual Studio installed and I use cmake

Re: [CMake] On WINDOWS, Is it Possible to build 64-bit and 32-bit Solutions in One Go?

2012-02-16 Thread John Drescher
On Thu, Feb 16, 2012 at 2:54 PM, Hashim Mir h...@rim.com wrote: Hi, This is what I am doing presently in order to compile both a 32-bit and a 64-bit version of my project: cmake.exe -G “Visual Studio 9 2008” #for x32 cmake.exe -G “Visual Studio 9 2008 Win64”   #for x64 Is

Re: [CMake] On WINDOWS, Is it Possible to build 64-bit and 32-bit Solutions in One Go?

2012-02-16 Thread John Drescher
On Thu, Feb 16, 2012 at 3:27 PM, John Drescher dresche...@gmail.com wrote: On Thu, Feb 16, 2012 at 2:54 PM, Hashim Mir h...@rim.com wrote: Hi, This is what I am doing presently in order to compile both a 32-bit and a 64-bit version of my project: cmake.exe -G “Visual Studio 9 2008

Re: [CMake] Doesn't anyone know how to get precompiled headers working under CMake for Visual Studio 2010?

2012-02-16 Thread John Drescher
On Thu, Feb 16, 2012 at 7:39 PM, david_bjorn...@agilent.com wrote: My team has been using precompiled headers under CMake and Visual Studio 2008 for quite a while.  Now we’ve switched to VS 2010,  the cmake code we used to support precompiled headers is no longer working. The following is

Re: [CMake] Generating CMake scripts from Visual Studio solutions projects?

2012-02-17 Thread John Drescher
Did you try the tool listed in the Wiki http://www.cmake.org/Wiki/CMake#Visual_Studio I would be interested in if you get any of these to work well with non trivial projects. When I last looked at some of these (probably 2+ years ago so things may have changed) they did not work well with my

Re: [CMake] Generating CMake scripts from Visual Studio solutions projects?

2012-02-18 Thread John Drescher
2+ years? That could easily end up like a Yugo vs. Porsche surprise ;) The original vcproj2cmake script was composed of 300 lines, and now the project is to the tune of around 4000 lines. I have a lot of 5 to 15 year old MFC code(applications, dlls, static libraries) that I would like to

Re: [CMake] Cmake hangs on testing -- Check for working C compiler using: Visual Studio 10

2012-02-18 Thread John Drescher
Now I don't know what is happening. This is no longer working. Back to hanging up. I have never had this hang and I use visual studio 2010 SP1 daily for over a year with cmake. Now I am on cmake-2.8.7 however I have used probably every other 2.8 release as well. John -- Powered by

Re: [CMake] Cmake hangs on testing -- Check for working C compiler using: Visual Studio 10

2012-02-18 Thread John Drescher
On Sat, Feb 18, 2012 at 11:23 PM, Nicky Perian nickyper...@gmail.com wrote: Applied 5 additional microsoft updates related to sp1 and seems to by working. Need to follow my own advice and apply updates to exhaustion. I do have Microsoft Update running on all machines that I use CMake/VS 2010

Re: [CMake] Shared intermediary files

2012-02-21 Thread John Drescher
On Mon, Feb 20, 2012 at 4:07 PM, Kevin Schmidt ke...@eyesopen.com wrote: Hello,   I’m in the process of converting over a large, monolithic tree with many libraries from a custom build solution over to cmake.  So far, we’ve loved it.  I am wondering about others’ solutions to a problem we

Re: [CMake] simplest possible NSIS package

2012-02-23 Thread John Drescher
Just to make you laugh I found the source of the problem. Apparently if you try to run an installer from a directory which is on a shared directory (with the virtualbox sharing) it just won't run :D Copying it somewhere else works perfectly, quite amazing issue. Thanks for reporting back.

Re: [CMake] [Insight-users] CMake configure insightapplications with FLTK

2012-02-23 Thread John Drescher
On Thu, Feb 23, 2012 at 6:19 PM, Yang, Jinzhong jinzhon...@gmail.com wrote: Hi All, I was trying to configure InsightApplications in CMake with USE_FLTK turned on, but I continuously got the error message: CMake Error at CMakeLists.txt:128 (INCLUDE): include called with wrong number of

Re: [CMake] Is there a cookbook?

2012-02-24 Thread John Drescher
but my point here is that we really need a CMake CookBook or snippet repository. I always hit the FAQ first, but that /explains/ when what a coder tends to need in that frame of mind is a living example. Maybe some user committed examples in the wiki just like what has been done for the vtk

Re: [CMake] Can't generate Release build in Visual Studio 9

2012-02-24 Thread John Drescher
2. Do batch building. I do this option. Look at the cmake --build command Here is an example of this for one of my current projects (not exactly what I do but close enough): rem configure pushd . cd X:\64Bit\VC.100\Qt\StudyManager cmake X:/CMakeBased/Qt/StudyManager popd rem build the nsis

Re: [CMake] smarter shortcuts with NSIS

2012-02-27 Thread John Drescher
By the way, how do I see the actual paths NSI configuration that generates the final exe? It seems that if NSIS works the file used get all removed.. It does not get removed for me using Visual Studio 2010. All of the NSIS stuff exists in a _CPack_Packages folder inside of the build tree.

Re: [CMake] smarter shortcuts with NSIS

2012-02-27 Thread John Drescher
Ah yes you're right, last time I checked I didn't see them.. Anyway my extra_commands don't appear anywhere in the nsi file, is that normal? I can't help with that part. I do add components also executables with shortcuts for my executables by setting the CPACK_PACKAGE_EXECUTABLES variable.

Re: [CMake] CMake hidden files

2010-06-06 Thread John Drescher
I tried to install PV on Windows XP with MinGV, without any success. So I decided to go with Visual Studio 10 Express, installed it, selected it as a generator, etc But I get an error message, something like it seems that you try to build on VS with Qt built on MinGW. Ok, right, so I

Re: [CMake] Building multiple releases for a visual studio project

2010-06-08 Thread John Drescher
On Tue, Jun 8, 2010 at 2:52 PM, Torri, Stephen CIV NSWCDD, W15 stephen.to...@navy.mil wrote: I was wondering if it was possible to have a CMake project that builds a Microsoft Visual Studio Project produce an NSIS installer for each kind of build (e.g. debug, release, RelWithDebug). Right now

Re: [CMake] [vtkusers] VTK 5.6.0 Cmake Errors

2010-06-17 Thread John Drescher
On Thu, Jun 17, 2010 at 3:16 PM, Scott Johnson scott.john...@neuwave.com wrote: On a whim I totally changed the path to a different drive and naming structure and tried again.  I was able to fully configure and generate the solution.  Even after I set the options I was originally trying.

Re: [CMake] One last try

2010-06-21 Thread John Drescher
1. Is cmake supposed to support Visual Studio 2008 out of the box? Yes and it works well. I use this combination every day for the last 2 years. John ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] One last try

2010-06-21 Thread John Drescher
On Mon, Jun 21, 2010 at 9:59 AM, Gerry Weaver ger...@compvia.com wrote: Hello All, Thank you for your replies. The cmake command fails when trying to compile the test file. It says it cannot find kernel32.lib. I can compile and link without cmake just fine. Any ideas? Thanks, -G Try

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

2010-07-01 Thread John Drescher
I have recently created a CMake project that I use to generate Visual Studio solutions/projects and it works perfectly with one exception. After generating a Visual Studio 9 2008 Win64 solution, the solution contains only the x64 build specification.  Is it possible to have CMake add the

Re: [CMake] Different configurations with Visual Studio

2010-07-05 Thread John Drescher
I see, thanks. I intend to write a Python script that adds the extra platform solution, because we really need that. Visual Studio and Code::Blocks project files are XML files, so it shouldn't be too hard. What is wrong with different build folders for each compiler / ide? John

[CMake] Upgraded to cmake-2.8.2 on windows7 and now it will not work

2010-07-06 Thread John Drescher
I was using 2.8.1 and previous cmake versions for a long time without any problems. Also 2.8.2 works for the same project on 64 bin xp. CMake Error: CMake was unable to find a build program corresponding to Visual Studio 8 2005. CMAKE_MAKE_PROGRAM is not set. You probably need to select a

Re: [CMake] Upgraded to cmake-2.8.2 on windows7 and now it will not work

2010-07-06 Thread John Drescher
On Tue, Jul 6, 2010 at 12:50 PM, John Drescher dresche...@gmail.com wrote: I was using 2.8.1 and previous cmake versions for a long time without any problems. Also 2.8.2 works for the same project on 64 bin xp. CMake Error: CMake was unable to find a build program corresponding to Visual

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 9:44 PM, Clark Gaebel cg.wowus...@gmail.com wrote: I would like to generate file that looks something like this:    // version.h    #define VERSION v0.1-345-ga77ede8 where the version string is the result of running git describe --tags --dirty. How can I auto-generate

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
1) I'm using git I know. You have some work to do.. On top of the minor differences in what you want the FindGIt.cmake does not have that option to return the version so you need to adapt it to get the git version similar to the way the FindSubversion.cmake module does for subversion

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 10:59 PM, Clark Gaebel cg.wowus...@gmail.com wrote: Is there any way I can use the output from a command-line program (in this case, git describe --dirty) instead of using FindGit? I believe add_custom_command but I can not help with an example of that. John

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 11:04 PM, John Drescher dresche...@gmail.com wrote: On Wed, Jul 7, 2010 at 10:59 PM, Clark Gaebel cg.wowus...@gmail.com wrote: Is there any way I can use the output from a command-line program (in this case, git describe --dirty) instead of using FindGit? I believe

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 11:43 PM, Clark Gaebel cg.wowus...@gmail.com wrote: Okay, I've almost got it. How do I make configure_file generate something like... source: #cmakedefine VERSION Some thing like Version.h.in #define VERSION @PROJECT_VERSION@ Try to look at my first example for

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
Nice. that works. I'm so sorry to be such a bother, but here's my output now... #define PROJECT_VERSION v0.1-345-ga77ede8-dirty Needless to say, that's bad :( How would I go about removing that trailing newline? STRING(REGEX REPLACE on the PROJECT_VERSION in your CMakeLists.txt there

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 11:58 PM, John Drescher dresche...@gmail.com wrote: Nice. that works. I'm so sorry to be such a bother, but here's my output now... #define PROJECT_VERSION v0.1-345-ga77ede8-dirty Needless to say, that's bad :( How would I go about removing that trailing newline

Re: [CMake] cmake 2.8.2 win32: invalid escape sequence when finding fortran compiler

2010-07-14 Thread John Drescher
On Wed, Jul 14, 2010 at 10:16 AM, Verweij, Arjen verwe...@tass-safe.com wrote: Hi, I’m trying a little F90 example on Windows with cmake. Apparently something is amiss, but I can’t find much on Google about it; at least not about this particular case. All I do is cmake ..\f90example

  1   2   3   4   5   6   >