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] '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] 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] 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

[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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 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 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

[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] 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

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] 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] 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] 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] 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] 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

[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] 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] 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] QtCreator project generator

2011-03-01 Thread John Drescher
On Tue, Mar 1, 2011 at 6:45 AM, Campbell Barton ideasma...@gmail.com wrote: QT-Creator which currently supports CMake by reading code::blocks project files. The problem with this is code::blocks project files don't write in #defines, so the IDE shows #ifdef's incorrecyly. For the short

Re: [CMake] QtCreator project generator

2011-03-01 Thread John Drescher
On Tue, Mar 1, 2011 at 9:15 AM, John Drescher dresche...@gmail.com wrote: On Tue, Mar 1, 2011 at 6:45 AM, Campbell Barton ideasma...@gmail.com wrote: QT-Creator which currently supports CMake by reading code::blocks project files. The problem with this is code::blocks project files don't

Re: [CMake] Including a header file fails

2011-03-01 Thread John Drescher
The header file is already #included in one of the source files. What I don't know is how to link it. Can I do it only with target_link_libraries ( ) or how? You do not link header files. You link source files. Why are you not specifying your source files on the target_link_libararies() line?

Re: [CMake] Including a header file fails

2011-03-01 Thread John Drescher
On Tue, Mar 1, 2011 at 2:15 PM, Enrique Izaguirre enrique.izagui...@gmail.com wrote: Sorry, I didn't explain correctly. All the source files are in variable ${hostFiles} and I generated and executable using add_executable (myprj ${hostFiles}) now I need to add the w32api folder from Windows,

Re: [CMake] include_directories and relative paths

2011-02-22 Thread John Drescher
I don't need to move/copy CMake build tree, I just want to generate and move/copy VC proj/solution files. You can not generate portable Visual Studio solution files with CMake. The solution files generated would still require CMake. Its best not to even package these. Just use CMake on all

Re: [CMake] Solution folders

2011-02-19 Thread John Drescher
On Sat, Feb 19, 2011 at 11:22 AM, Robert Bielik robert.bie...@xponaut.se wrote: Hi all, Running CMake 2.8.2 and generating build files for VS 9 (2008), I'm trying to tidy up the workspace by putting projects in solution folders. So I do: add_library(MyLib .)

Re: [CMake] Naive (stupid?) question

2011-02-17 Thread John Drescher
   apologies for the stupid question. I have a large project and at times a change triggers unexpected consequences, i.e. very large recompilations, rebuild of the cmake makefiles and so on. Is there a way in cmake to understand why things happens? I mean which chain of dependencies causes

Re: [CMake] Gyp VS CMake

2011-02-17 Thread John Drescher
But we are going off topic. The main point in my post was to trigger discussion about how we could improve CMake, so that Gyp's developers/users could use it. I think one of their main points was to generate standalone projects that do not require CMake to build. John

Re: [CMake] inconsistent line endings in Visual Studio 2010

2011-02-17 Thread John Drescher
VS 2010 always breaks my build complaining about inconsistent line endings in a generated file. I need to open and re-save the file in VS to be able to continue. My code is about: TRY_RUN(.. RUN_OUTPUT_VARIABLE RUN_OUTPUT) FILE(WRITE ${CMAKE_BINARY_DIR}/foo.h ${RUN_OUTPUT}) The program

Re: [CMake] inconsistent line endings in Visual Studio 2010

2011-02-17 Thread John Drescher
On Thu, Feb 17, 2011 at 8:39 AM, John Drescher dresche...@gmail.com wrote: VS 2010 always breaks my build complaining about inconsistent line endings in a generated file. I need to open and re-save the file in VS to be able to continue. My code is about: TRY_RUN(.. RUN_OUTPUT_VARIABLE

[CMake] Expected boost path structure.

2011-02-17 Thread John Drescher
I am trying to get FIND_PACKAGE(BOOST REQUIRED) to work on windows. After building boost-1.45.0 on windows with the following command bjam --build-dir=X:\32Bit\VC.90\build\Libraries\boost-1.45.0 toolset=msvc-9.0 --prefix=X:\32bit\VC.90\Libraries\boost-1.45.0 --build-type=complete install and

Re: [CMake] Expected boost path structure.

2011-02-17 Thread John Drescher
On Thu, Feb 17, 2011 at 11:05 AM, David Cole david.c...@kitware.com wrote: Are you escaping the \ characters, like this? set(BOOST_ROOT X:\\32bit\\VC ...) Or using the CMake convention / as a path separator character? set(BOOST_ROOT X:/32bit/VC ...) (this is the one you should be doing...)

Re: [CMake] Expected boost path structure.

2011-02-17 Thread John Drescher
On Thu, Feb 17, 2011 at 11:25 AM, John Drescher dresche...@gmail.com wrote: On Thu, Feb 17, 2011 at 11:05 AM, David Cole david.c...@kitware.com wrote: Are you escaping the \ characters, like this? set(BOOST_ROOT X:\\32bit\\VC ...) Or using the CMake convention / as a path separator character

Re: [CMake] Expected boost path structure.

2011-02-17 Thread John Drescher
According to FindBoost.cmake:  if (NOT BOOST_ROOT AND NOT $ENV{BOOST_ROOT} STREQUAL )    set(BOOST_ROOT $ENV{BOOST_ROOT})  endif() So, it should work with an ENV var, too. But the way this is phrased, it would have to have forward slashes / and no spaces in it for it to work. I launched

Re: [CMake] Expected boost path structure.

2011-02-17 Thread John Drescher
On Thu, Feb 17, 2011 at 11:37 AM, John Drescher dresche...@gmail.com wrote: According to FindBoost.cmake:  if (NOT BOOST_ROOT AND NOT $ENV{BOOST_ROOT} STREQUAL )    set(BOOST_ROOT $ENV{BOOST_ROOT})  endif() So, it should work with an ENV var, too. But the way this is phrased, it would have

Re: [CMake] Expected boost path structure.

2011-02-17 Thread John Drescher
Take away the quotes in the env var. They are actually embedded in the env var, so they'll end up in the CMake variable, too. If you print out the CMake variable that gets set based on that env value, then it will have double quotes in it. Okay that worked. Thanks a lot. -- John M.

Re: [CMake] Expected boost path structure.

2011-02-17 Thread John Drescher
You're welcome. Also, if you have to run it again, your message code should run before and after finding boost so you can see what it changed... It changed exactly as you said: Check for working C compiler using: Visual Studio 9 2008 Check for working C compiler using: Visual Studio 9 2008 --

Re: [CMake] multiple directories in one variable

2011-02-11 Thread John Drescher
On Fri, Feb 11, 2011 at 9:16 AM, Ilja Golshtein ilej...@narod.ru wrote: Hello! I use a product which (depending on installation type) can keep headers in several directories. What is the best way to specify these directories? Do I have better option than variables

Re: [CMake] multiple directories in one variable

2011-02-11 Thread John Drescher
it is what I want. But how? How can I put all the directories in EXTERNAL_PRODUCT_INCLUDES from cmake command line? I do not know. Sorry. I did not see that you were trying to add these via the command line. I never use that mode of cmake. John

Re: [CMake] Accessing visual studio debugger options

2011-02-09 Thread John Drescher
On Wed, Feb 9, 2011 at 2:30 PM, Robert Bielik robert.bie...@xponaut.se wrote: Louis Hoefler skrev 2011-02-09 19:41: Hello everyone, i created cmake files for a visual studio solution. The solution compiles, and now I want to start debugging the testapplication. I want to change the command

Re: [CMake] problem with ADD_SUBDIRECTORY always inheriting all settings

2011-02-01 Thread John Drescher
On Tue, Feb 1, 2011 at 5:36 PM, Maarten Nieber hallomaar...@yahoo.com wrote: Hi John, thanks, but that only works one level deep, right? If you have a structure A - B - C, then C will always inherit all of A, regardless of where in B's CMakeList you put the ADD_SUBDIRECTORY. No it depends

[CMake] FILE( MAKE_DIRECTORY path) prepends source path to make directory path.

2011-01-21 Thread John Drescher
I am getting a the following error: CREATING X:/32Bit/VC.90/Qt/StudyManager/bin/Debug/sqldrivers CMake Error at CMake/GetQtRuntime.cmake:21 (file): file problem creating directory: X:/CMakeBased/Qt/StudyManager/X:/32Bit/VC.90/Qt/StudyManager/bin/Debug/sqldrivers Call Stack (most recent call

Re: [CMake] FILE( MAKE_DIRECTORY path) prepends source path to make directory path.

2011-01-21 Thread John Drescher
You don't need those backslashes there. Try: file( MAKE_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/${Release}/sqldrivers ) That solved the issue. The reason for my error (besides the headache that I have at the moment) was that I copied the line from the the next line in the macro which needs to put

Re: [CMake] MSVC 2010

2011-01-18 Thread John Drescher
I mean the option -G to specify the target build system. In my cmake 2.8.3 there is only MSVC 2008. Or d oyou refer to the latest development version of cmake? That supports VC2010 as well. John ___ Powered by www.kitware.com Visit other Kitware

Re: [CMake] MSVC 2010

2011-01-18 Thread John Drescher
On Tue, Jan 18, 2011 at 1:17 PM, Bill Hoffman bill.hoff...@kitware.com wrote: On 1/18/2011 1:07 PM, Hendrik Sattler wrote: What I meant to say: the .NET in the name is not important, being it the official product name or not. 7/8/9/10 or [.NET] 2003/2005/2008/2010, who cares. I find it more

Re: [CMake] How to assign version numbers from a source header to CMake variables?

2011-01-12 Thread John Drescher
I would like the add the CMake approach for software generation to a project. My project example supports also other build tools. This has got consequences on the way how informations like version numbers are shared between these approaches. The CMake tutorial describes components for the

Re: [CMake] module contribution?

2011-01-09 Thread John Drescher
On Sat, Jan 8, 2011 at 7:55 PM, Nico Schlömer nico.schloe...@gmail.com wrote: Quick question here: I have a couple of libraries here which all need NetCDF, so I was thinking the cleanest solution would be to write one FindNetCDF.cmake and use it everywhere. What's the policy of including

Re: [CMake] TARGET_LINK_LIBRARIES not working for MSVC

2011-01-08 Thread John Drescher
TARGET_LINK_LIBRARIES(hybridnccsurfacecoloring bundler imagelib matrix mathlib                       5point libsba  libepnp                       sfm libDescriptors f2c  minpack lapack ann) if(WIN32) TARGET_LINK_LIBRARIES(hybridnccsurfacecoloring getopt jpeg) endif(WIN32) I do not think

[CMake] Fwd: TARGET_LINK_LIBRARIES not working for MSVC

2011-01-08 Thread John Drescher
-- Forwarded message -- From: Avanindra Singh avanindra.si...@gmail.com Date: Sat, Jan 8, 2011 at 9:31 AM Subject: Re: [CMake] TARGET_LINK_LIBRARIES not working for MSVC To: John Drescher dresche...@gmail.com Hi john, Thanks for the reply.Multiple TARGET_LINK_LIBRARIES  did

Re: [CMake] Fwd: TARGET_LINK_LIBRARIES not working for MSVC

2011-01-08 Thread John Drescher
On Sat, Jan 8, 2011 at 10:17 AM, Avanindra Singh avanindra.si...@gmail.com wrote: Hi Eric, Thanks for the reply. It was very useful. I incorporated the changes you mentioned. I removed all the link_libraries macros from the projects. Also I changed camke_minimum_version to 2.6 . I have CMake

[CMake] Fwd: Disabling exceptions and rtti on VS

2010-12-31 Thread John Drescher
-- Forwarded message -- From: John Drescher dresche...@gmail.com Date: Fri, Dec 31, 2010 at 9:42 AM Subject: Re: [CMake] Disabling exceptions and rtti on VS To: Óscar Fuentes o...@wanadoo.es On Fri, Dec 31, 2010 at 9:27 AM, Óscar Fuentes o...@wanadoo.es wrote: If /EHs- /EHs-c

Re: [CMake] Visual Studio 2010 Generator Missing?

2010-12-28 Thread John Drescher
Just a small piece of feedback. All the other Visual Studio generators are in order, ie, VS 6, VS 7, VS 8, VS 9 so it made sense to look for VS 10 below VS 9. Was there a specific reason for putting VS 10 above VS 6 and thus out of order? Maybe the combo box is sorted? John

<    1   2   3   4   5   6   >