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 11:15 AM, Verweij, Arjen wrote: > Hi, > >> >>You seem to have a path using \ instead of / >> > > Isn't that to be expected of a PATH setting on a Windows computer? > Anyway, the path to the Visual Studio compiler is of the same format and > cmake deals with it just fine. >

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 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 and the fol

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 11:58 PM, John Drescher 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'

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

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 11:43 PM, Clark Gaebel 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 usage. John

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 11:04 PM, John Drescher wrote: > On Wed, Jul 7, 2010 at 10:59 PM, Clark Gaebel 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 b

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 10:59 PM, Clark Gaebel 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
> 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 repositorie

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 9:44 PM, Clark Gaebel 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 this file,

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

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

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 __

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

Re: [CMake] One last try

2010-06-21 Thread John Drescher
On Mon, Jun 21, 2010 at 9:59 AM, Gerry Weaver 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 running the build

Re: [CMake] How set "Build Name" in CTest/CDash?

2010-06-21 Thread John Drescher
> The old-fashioned way of doing this is to set a BUILDNAME variable in the > cmake cache... > > In your CMakeLists.txt: > set(BUILDNAME "myBuildName" CACHE STRING "build name variable for CDash") > > The new-fashioned way is to set CTEST_BUILD_NAME in your ctest -S script > prior to ctest_configur

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 http://www.kitware.com/o

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 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. > > I'm not sure where it w

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 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 I can build the pro

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] Linking error with VS2005

2010-05-21 Thread John Drescher
led by the same > compiler version? > Yes, all my libs and application are built with VS2005 compiler > > V > > >> -Message d'origine- >> De : John Drescher [mailto:dresche...@gmail.com] >> Envoyé : vendredi 21 mai 2010 14:29 >> À : Daanen Vincent &g

Re: [CMake] Linking error with VS2005

2010-05-21 Thread John Drescher
On Fri, May 21, 2010 at 8:01 AM, Daanen Vincent wrote: > Dear Cmake users, > > I'm facing to a problem I can't resolve. > I'm developping on a windows XP SP3 box with Visual Studio 2005. > > I have a project using itk which compile fine. > For  some reason, I try to use cmake to generate the "same

Re: [CMake] Newbie: Building multiple configurations (x86/x64, MSVC/MinGW-W64, etc.)

2010-05-07 Thread John Drescher
On Fri, May 7, 2010 at 11:53 AM, Alok Govil wrote: > Hi all, > > I am trying to use CMake to build my code under multiple configurations: > > 1.  x86 and x64 > 2.  MSVC various versions and MinGW-W64 mainly > 3.  Debug and release (optional) > > In each case I would like to link the code with a co

Re: [CMake] CXX incorrectly includes CMakeFortranInformation.cmake for MinGW/MSYS/Wine

2010-04-04 Thread John Drescher
On Sun, Apr 4, 2010 at 7:16 PM, Alan W. Irwin wrote: > Clint (with an old version of MinGW) and I (with MinGW-4.5) have been > running into a peculiar CXX error for MinGW/MSYS on Wine. > > Enabling C++ _sometimes_ fails because it includes > CMakeFortranInformation.cmake (why?) which then leads to

Re: [CMake] Is there really any cmake support?

2010-04-04 Thread John Drescher
> Which one? I just found a single CMakeLists.txt file in the build hierarchy, > actually located in ./VTK/CMakeTmp/TestExplicitInstantiation/CMakeLists.txt, > but I suppose you speak about another one. Do you mean a CMakeLists.txt > located in the source hierarchy??? > >From your answer it looks l

Re: [CMake] Is there really any cmake support?

2010-04-04 Thread John Drescher
On Sun, Apr 4, 2010 at 5:30 AM, Fred Fred wrote: > You are right! > Actually I have been confusing with MinGW and Cygwin and I realized that I > just need MinGW because I need to compile my plugins on Windows, and MinGW > would allow me to generate native Windows dlls, whereas Cygwin would require

Re: [CMake] Using target_link_libraries

2010-03-27 Thread John Drescher
> ADD_EXECUTABLE(tiney ${program_SRCS}) > TARGET_LINK_LIBRARIES(program ${program_LIBS}) Are these the exact 2 lines? I mean you have tiney in one and program in the other? John ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] MSVC and different link_directories for release and debug

2010-03-24 Thread John Drescher
On Wed, Mar 24, 2010 at 2:10 PM, John Drescher wrote: > On Wed, Mar 24, 2010 at 1:42 PM, Michael Schildt > wrote: >> Hello, >> >> I use GDCM libaries in one project. Unfurtunally, i couldn't find a findGDCM >> module and i'm not experienced enough to wri

Re: [CMake] MSVC and different link_directories for release and debug

2010-03-24 Thread John Drescher
On Wed, Mar 24, 2010 at 1:42 PM, Michael Schildt wrote: > Hello, > > I use GDCM libaries in one project. Unfurtunally, i couldn't find a findGDCM > module and i'm not experienced enough to write one. I have seen that GDCM is > used in ITK, so there must be a module like this. GDCM is using cmake t

[CMake] Fwd: Bug ? Or I'm doing something wrong ?

2010-03-22 Thread John Drescher
On Mon, Mar 22, 2010 at 9:32 AM, Benoit Thomas wrote: > Yes that's what I mean, cmake re-runs from the root directory of the > project, for every target in my project. > > Which means when I do a rebuild all in visual studio, every target in my > project re-runs the root CMakeLists.txt, which re-b

Re: [CMake] [Insight-users] ANNOUNCEMENT: "Mastering CMake", Fifth Edition.

2010-03-19 Thread John Drescher
On Fri, Mar 19, 2010 at 11:07 AM, Luis Ibanez wrote: > Kitware is pleased to announce the release of the Fifth Edition of > >                              "Mastering CMake" > >    http://www.kitware.com/products/books/CMakeBook.html > > > This edition features instructions for building your own pr

Re: [CMake] QTCreator project to VS2008 problems

2010-03-19 Thread John Drescher
>> I may have worded that badly, so just to clarify - the QT I am using to >> create the VS2008 project (the one used with cmake) was compiled with >> VS2008, it's just the original code that was created in a mingw compiled >> QTCreator. I thought the point of cmake is to enable porting code from o

Re: [CMake] QTCreator project to VS2008 problems

2010-03-19 Thread John Drescher
> Thanks for the reply - I added mainwindow.h to the automoc but I get the > same thing - I thought it might be the QMetaobject header or library it was > looking for, looking at the the error messages, but I checked and the header > is there, and the search paths are correct. I built the QTProject

[CMake] Fwd: Project Folders in Visual Studio

2010-03-15 Thread John Drescher
On Mon, Mar 15, 2010 at 5:42 PM, Pau Garcia i Quiles wrote: > On Mon, Mar 15, 2010 at 7:49 PM,   wrote: >> I know this has been asked before but I don't think it got an answer. I have >> a situation where I have over 200 projects in Visual Studio with no >> organization. Is there anyway to put the

Re: [CMake] Fwd: Project Folders in Visual Studio

2010-03-15 Thread John Drescher
> for which putting them in solution folders to group them up > was a good idea, I see now. I was not aware of solution folders. Sorry for the noise. John ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.co

Re: [CMake] Project Folders in Visual Studio

2010-03-15 Thread John Drescher
On Mon, Mar 15, 2010 at 2:49 PM, wrote: > I know this has been asked before but I don't think it got an answer. I have > a situation where I have over 200 projects in Visual Studio with no > organization. Is there anyway to put them under folders? It would really > save me some headaches. Thanks.

Re: [CMake] Using absolute values in include_directories directive

2010-03-03 Thread John Drescher
On Wed, Mar 3, 2010 at 1:44 PM, Felipe Sodre dos Santos wrote: > Hello all. > > > > Im trying to set an include directory which is actually an environment > variable inside VC++ , $(QTDIR), and thus I tried the following: > > > > … > > > > include_directories( > >   $(QTDIR)/include > > ) > > > >

Re: [CMake] Qt - Private implementation slot and required cmake special rules

2010-03-03 Thread John Drescher
On Wed, Mar 3, 2010 at 1:37 PM, Olaf Peter wrote: > I try to use Qt's internal Stuff for my own purpose. I want to compile > the moc file separately which is with cmake very simple. Anyway, I have > to tweak moc for this. > > I have to add the private type to the moc file generated otherwise I get

Re: [CMake] Can CMake prompt the user for input while it's running?

2010-02-27 Thread John Drescher
On Sat, Feb 27, 2010 at 12:23 PM, Naram Qashat wrote: > I'm wondering if it's possible for CMake to prompt the user for input when > it's running, as opposed to relying on passing in arguments for input.  Main > reason I'm looking for something like this is so we can have optional files > that can

Re: [CMake] FindSubversion on windows problem and solution.

2010-02-19 Thread John Drescher
On Fri, Feb 19, 2010 at 7:30 PM, Tyler Roscoe wrote: > On Fri, Feb 19, 2010 at 06:44:20PM -0500, John Drescher wrote: >> Under windows I am using the cygwin svn executable for this. The find >> module does not automatically find subversion however if I enter it in >> cmake-gu

[CMake] FindSubversion on windows problem and solution.

2010-02-19 Thread John Drescher
Recently I have moved to appending the svn rev to the end of my patch version. An example of this is the following: set (StudyManager_VERSION_MAJOR 0) set (StudyManager_VERSION_MINOR 0) set (StudyManager_VERSION_PATCH 0) #---

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

2010-02-19 Thread John Drescher
On Fri, Feb 19, 2010 at 8:46 AM, Brad King wrote: > On 2/18/2010 4:35 PM, Ben Medina wrote: >> >> I just took it for a spin on the Windows side of my projects. It >> worked flawlessly with VS2005 and VS2008. > > Great, thanks for trying it. > >> However, with VS2010, CMake is re-run in the middle

Re: [CMake] Specifying build directory

2010-02-18 Thread John Drescher
On Thu, Feb 18, 2010 at 2:38 AM, Anders Backman wrote: > Hi all. > Im using latest (2.8 CMake) under Windows, VisualStudio 2008. > > When I mix x86 and x64 builds, I would like to separate the actual output > directory for the builds so that I dont get problems about mixing build > types. > Right

Re: [CMake] How to turn off incremental linking for MSVC Debug and RelWithDebInfo targets?

2010-02-11 Thread John Drescher
On Thu, Feb 11, 2010 at 6:46 PM, Erwin Coumans wrote: > > I can't find where this INCREMENTAL:YES is coming from. > Is there a better way than hacking the 'cmLocalVisualStudio7Generator > ::GetBuildTypeLinkerFlags' > to replace INCREMENTAL:YES by INCREMENTAL:NO? > Thanks a lot, > Erwin I think it

Re: [CMake] How to turn off incremental linking for MSVC Debug and RelWithDebInfo targets?

2010-02-09 Thread John Drescher
>> STRING(REPLACE "INCREMENTAL:YES" "INCREMENTAL:NO" replacementFlags >> ${CMAKE_EXE_LINKER_FLAGS_DEBUG}) >> message (${replacementFlags}) >> SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG ${replacementFlags}) >> >> >> STRING(REPLACE "INCREMENTAL:YES" "INCREMENT

[CMake] Fwd: Relative (source files) vs Absolute (include files) path

2010-02-02 Thread John Drescher
> Why I care: > > Lets say that I someone wants to check the Visual Studio project goop > produced by CMake in trunk and check out in a diffrent directory in their > branch on another machine.  With absolute paths sprinkled all over > effectively makes this impossible. > Never put any generated pa

Re: [CMake] Would there be a need for Subversion_WC_UPDATE??

2010-01-28 Thread John Drescher
On Thu, Jan 28, 2010 at 3:28 AM, Marcel Loose wrote: > Hi all, > > For my project, I'm working on automatic 'svn update' of (parts of) my > source tree, prior to building. I was wondering whether someone else > might be interested in that kind of functionality. If so, maybe it could > be added as

Re: [CMake] how to define the output location of QT4_WRAP_UI?

2010-01-26 Thread John Drescher
On Tue, Jan 26, 2010 at 5:39 PM, e...@cs.bgu.ac.il wrote: > > hello. > I've ran into a slight problem, I have a program that uses qt4 gui, I've > created classes with ui, my cmakelist.txts looks like this: > > cmake_minimum_required(VERSION 2.6) > PROJECT(Quad) > > SET(CMAKE_VERBOSE_MAKEFILE ON)

Re: [CMake] Quick question: Does the CMake plugin work in VC Express?

2010-01-26 Thread John Drescher
> Thanks for the information!  It's unfortunate, but there's nothing to be > done about it. > You can freely download an 180 day trial. http://www.microsoft.com/visualstudio/en-us/try/default.mspx John ___ Powered by www.kitware.com Visit other Kitwar

Re: [CMake] [vtkusers] Windows: Correctly linking the debug and release libraries in a CMake-based project

2010-01-26 Thread John Drescher
>> When you build VTK using CMake the .lib .dll may have the same name >> but they are in different folders. CMake understands this and will >> properly link your application with the correct .lib. This happens if >> you do build both debug and release vtk. >> >> John > > I think he is talking abou

Re: [CMake] Specifying multiple build threads on windows

2010-01-24 Thread John Drescher
> Thanks but how do I integrate vcbuild or msbuild with cmake ? > I never have used the --build option. I am not exactly sure. For my windows projects I have it generate a batch file using cmake configure. This batch file calls devenv with the options from cmake. So to build I call install.bat lo

[CMake] What activates the fortran module?

2010-01-24 Thread John Drescher
I am testing running cmake to generate Visual Studio 2005 projects under wine and things are going good. I have built 2 projects without any problems then the third project had the following error: CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeFortranInformation.cmake:25 (

Re: [CMake] Specifying multiple build threads on windows

2010-01-24 Thread John Drescher
> Can you please help as how I could specify the number of threads to be used > in the command line builds i.e. something like > > (For nmake) > > Cmd > nmake –j5 > > (For Visual Studio 2008) > > cmd> cmake –-build . –j5 > Use vcbuild or msbuild John __

Re: [CMake] Using gcc as an alternative compiler on windows

2010-01-20 Thread John Drescher
>> To add an additional option I have successfully used QtCreator (which >> builds using MinGW) on windows with cmake. It supports CMakeLists.txt >> files directly. I would call it work in progress as far as the CMake >> support. > > What's not working ? > (it works off the same CodeBlocks files) >

Re: [CMake] Using gcc as an alternative compiler on windows

2010-01-20 Thread John Drescher
> 2010/1/20 Mike Jackson : >> You need to have a valid/correct installation of MinGW or MSYS+MinGW or >> Cygwin. > > As a complement to Mike advice you may have a look at > Code::Blocks (aka C::B) too, it's a cross-platform IDE working on Windows > and there is downloadable installer which comes b

Re: [CMake] Using gcc as an alternative compiler on windows

2010-01-20 Thread John Drescher
> Navigate to a CLEAN build directory and invoke either cmake or cmake-gui > Out of source builds work great here. You keep your source in one tree and your builds in other trees. For me its a choice between 32 and 64 bit builds for different microsoft compilers. I have my source trees inside of

Re: [CMake] RoadMap

2010-01-18 Thread John Drescher
> I haven't found any information about a CMake roadmap. Are there any > concrete plans about the release of CMake 2.9 yet? > 2.9 is a development build. Even numbers are released while odd ones are development. As for your question I do not know. But I can safely say it will not be in this quart

Re: [CMake] Proposal for new generator options

2010-01-16 Thread John Drescher
On Sat, Jan 16, 2010 at 6:58 PM, Jochen Wilhelmy wrote: > >> You may be able to get this approved if you file a bug report and >> possibly provide a patch for this. It actually should not be that hard >> to implement however I assume developers have much higher priorities >> than this. >> > > ok,

Re: [CMake] Proposal for new generator options

2010-01-16 Thread John Drescher
On Sat, Jan 16, 2010 at 4:11 PM, Jochen Wilhelmy wrote: > >> I would suspect that most users use the default values. I pretty much >> go with the defaults with the addition of adding the /MP parameter >> inside my main CMakeLists.txt file. > > If you are the author of some software then this is fi

Re: [CMake] Proposal for new generator options

2010-01-16 Thread John Drescher
> Now it works, I have upgraded to 2.8.0 and switched to "Advanced View". > Since I have to start the tool, change it for debug and release and then > re-generate > I still think it could be done easier, especially without needing to ask in > this mailing list. > How do all these dummy windows user

Re: [CMake] Proposal for new generator options

2010-01-16 Thread John Drescher
On Sat, Jan 16, 2010 at 11:07 AM, Jochen Wilhelmy wrote: > Hi! > > the first solution (Manual Replace) in > http://www.itk.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F > > does not seem to work since in the gui of cmake (2.6 for windows) I don't > see > any CMAKE

Re: [CMake] FindQt in a Specific place?

2010-01-13 Thread John Drescher
On Wed, Jan 13, 2010 at 1:07 PM, James Willis wrote: > Is there any good way of telling findqt (I don't really care about findqt3) > where to find Qt? > > Like say you did: > set(QT_QMAKE_LOCATION /home/myself/qt4.6.0/bin) > so that I later upgrade and do: > set(QT_QMAKE_LOCATION /home/myself/qt4

Re: [CMake] using cmake on windows - query on existing targets

2010-01-12 Thread John Drescher
> I noticed that it generates the following output: > -- Check if this is a free VC compiler - yes > I do not think I am using a free VC compiler, something is wrong here. > Is it possible to use nmake with Visual Studio 2008 compiler using cmake > 2.8? > I just tested this on my build box and sim

Re: [CMake] using cmake on windows - query on existing targets

2010-01-11 Thread John Drescher
On Mon, Jan 11, 2010 at 3:51 PM, Chauhan, Vikas wrote: >> > Actually, when I used the macro I found that though this macro gives >> > a >> > useful functionality it is not exactly what I wanted. >> > >> > What I want to do can be illustrated the following example: >> > I have a main project/dir -

Re: [CMake] using cmake on windows - query on existing targets

2010-01-06 Thread John Drescher
> Thanks, however I was looking to do it in a path independent way. For > example by just using the directory/vcproj name from top build > directory. Please do correct me if I have not understood correctly. > With that method there are no hardcoded paths in the batch files. The paths were generated

[CMake] Fwd: Compiler Test Failing on Windows 7

2010-01-06 Thread John Drescher
On Wed, Jan 6, 2010 at 2:49 PM, Gregory Peele ARA/CFD wrote: > Let's stress that the source and binary directories of this build are > readable and writable to Joe's account.  It is NOT a file permission issue > for any files in our build tree.  If CMake or Visual Studio generate files > outside o

Re: [CMake] using cmake on windows - query on existing targets

2010-01-06 Thread John Drescher
I am going to only answer 1 part of this. > For example: I may have a set of separate directories(each containing a > project) and from the top level root directory, I want to selectively build > a subset of projects. > > How can I do it on the command line ? I do this with a batch file. Each pro

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread John Drescher
On Thu, Dec 31, 2009 at 5:06 PM, Hicham Mouline wrote: >> -Original Message- >> From: John Drescher [mailto:dresche...@gmail.com] >> Sent: 31 December 2009 20:25 >> To: Hicham Mouline; CMake mailing list >> Subject: Re: [CMake] restricting Qt include and l

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread John Drescher
> If you open cmake-gui does and look at the Qt tab in Grouped View are > the debug libraries properly set? > Hmm sorry for the bad wording.. If you open cmake-gui and look at the Qt tab in Grouped View are the debug libraries properly set? John ___ Pow

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread John Drescher
On Thu, Dec 31, 2009 at 3:12 PM, Hicham Mouline wrote: >> -Original Message- >> From: Clinton Stimpson [mailto:clin...@elemtech.com] >> Sent: 31 December 2009 16:08 >> To: Hicham Mouline >> Cc: cmake@cmake.org >> Subject: Re: [CMake] restricting Qt include and library linking to 1 >> libra

Re: [CMake] cmake file in build directory

2009-12-29 Thread John Drescher
On Tue, Dec 29, 2009 at 6:01 PM, Hicham Mouline wrote: > Hello, > > I am writing software that uses boost and Qt and other 3rd party libraries > for win/mingw, win/msvc2008 and linux/gcc. > The location of the 3rd party header files is different on each of the boxes > I compile on. > > Is there

Re: [CMake] Overriding read-only project's CMakeLists.txt

2009-12-29 Thread John Drescher
> Where can I put build instructions that are build-host-wide, not > project-wide? > > I'm relatively new to cmake. I want to "inject" some code before the > project's own script, and I'd prefer not to modify the project (since then > I'd have to maintain the patch). > > I want to set the CMAKE__PR

Re: [CMake] [vtkusers] Coexistence of different Win32 libraries

2009-12-29 Thread John Drescher
On Tue, Dec 29, 2009 at 10:39 AM, Kenneth Porter wrote: > --On Monday, December 28, 2009 10:45 AM -0500 John Drescher > wrote: > >> Here is what I do. > >> [script] > > Thanks. Must I put that in the project's CMakeLists.txt or can I capture > that to a f

Re: [CMake] what is the right way to set CMAKE_USE_RELATIVE_PATHS?

2009-12-21 Thread John Drescher
> There are lots of questions on this CMake variable and the consensus is DO > NOT USE IT. PERIOD. The implementation is basically broken for all but the > most trivial case. > I can tell you one thing. If the original idea of this was an attempt to create a CMake free build that will not work. J

Re: [CMake] what is the right way to set CMAKE_USE_RELATIVE_PATHS?

2009-12-21 Thread John Drescher
On Mon, Dec 21, 2009 at 3:50 PM, Claus Klein wrote: > Hi all, > > I tried to use: >   set(CMAKE_USE_RELATIVE_PATHS ON) > in my CMakeLists.txt. > > But I noticed, that some cmake variables can't be changed in that way. > In the CMakeCache.txt, it is still OFF? > I have no idea about CMAKE_USE_RELAT

Re: [CMake] qt .qrc file modifications require two builds

2009-12-16 Thread John Drescher
On Wed, Dec 16, 2009 at 3:27 PM, Glenn Hughes wrote: > Removed the globbing, same exact behavior. > Any other ideas? > > Does this normally work for people? Any examples? > Works fine for me. Although I rarely update the .qrc files. John ___ Powered by

Re: [CMake] qt .qrc file modifications require two builds

2009-12-15 Thread John Drescher
> The CMake script in question looks more or less like: > > FILE (GLOB my_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "res/*.qrc"  ) > QT4_ADD_RESOURCES( my_RESOURCES_SOURCES ${my_RESOURCES} ) > > ... It's always best to not do any file globbing and add each file by hand. I believe this is caus

Re: [CMake] (no subject)

2009-12-15 Thread John Drescher
On Tue, Dec 15, 2009 at 4:13 AM, Johan Knutzen wrote: > > Hi! > > What is the status of scripts enabling precompiled headers for gcc/visual > studio? I've tried out PCHSupport_26 from > http://www.cmake.org/Bug/view.php?id=1260 but I couldn't get it to work. Does > anyone have any up to date sc

Re: [CMake] CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT returns false when expected true

2009-12-14 Thread John Drescher
On Mon, Dec 14, 2009 at 12:26 PM, Tyler Roscoe wrote: > On Mon, Dec 14, 2009 at 12:21:13PM -0500, John Drescher wrote: >> On Mon, Dec 14, 2009 at 12:16 PM, Tyler Roscoe wrote: >> > On Mon, Dec 14, 2009 at 12:07:33PM -0500, John Drescher wrote: >> >> SET (DEFAULT_

Re: [CMake] CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT returns false when expected true

2009-12-14 Thread John Drescher
On Mon, Dec 14, 2009 at 12:21 PM, John Drescher wrote: > On Mon, Dec 14, 2009 at 12:16 PM, Tyler Roscoe wrote: >> On Mon, Dec 14, 2009 at 12:07:33PM -0500, John Drescher wrote: >>> SET (DEFAULT_INSTALL_PATH ${PGM_FILES}/UPMC/${CMAKE_PROJECT_NAME} >>> CACHE S

Re: [CMake] CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT returns false when expected true

2009-12-14 Thread John Drescher
On Mon, Dec 14, 2009 at 12:16 PM, Tyler Roscoe wrote: > On Mon, Dec 14, 2009 at 12:07:33PM -0500, John Drescher wrote: >> SET (DEFAULT_INSTALL_PATH ${PGM_FILES}/UPMC/${CMAKE_PROJECT_NAME} >> CACHE STRING "Default Install Path") >> >> if (CMAKE_INSTALL_PRE

[CMake] CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT returns false when expected true

2009-12-14 Thread John Drescher
Under cmake-2.8.0 I have the following section in my CMakeLists.txt IF(CMAKE_SIZEOF_VOID_P MATCHES 4) string (REPLACE "\\" "/" PGM_FILES $ENV{PROGRAMFILES}) ELSE(CMAKE_SIZEOF_VOID_P MATCHES 4) # On WIN64 use the 64 bit program files.. string (REPLACE "\\" "/" PGM_FILES $ENV{ProgramW6432}) ENDIF(CM

Re: [CMake] Eclipse tries to build x64 instead of x86

2009-12-11 Thread John Drescher
> Ok, nevermind, I built again using "-DCMAKE_BUILD_TYPE=Release" and that > worked.  I wiped the build directory entirely and did > "-DCMAKE_BUILD_TYPE=Release" and it's working again.  Strange.  Maybe some > files just got screwed up somehow.  That seems to have fixed it so please > disregard

[CMake] Fwd: A bug for Code::Blocks MinGW?

2009-12-08 Thread John Drescher
On Tue, Dec 8, 2009 at 8:18 PM, Song Zhiwei wrote: > Thanks. Have done. > That is http://public.kitware.com/Bug/view.php?id=10014 for anyone following. -- John M. Drescher ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Source file symlinks on out-of-source builds

2009-12-03 Thread John Drescher
> That's one way do deal with it, but since I use xterm I don't have tabs, > and my monitor is a 17" 4:3, so screen space it rare. Dude... I need > some serious tools and hardware upgrades :) > install screen http://www.gnu.org/software/screen/ John __

Re: [CMake] Source file symlinks on out-of-source builds

2009-12-03 Thread John Drescher
On Thu, Dec 3, 2009 at 1:18 PM, Rodolfo Schulz de Lima wrote: > Michael Jackson wrote: >> I'll throw a "no" vote on that but what I would like to hear is some >> more detail from Rodolfo explaining why he thinks he needs this? Have >> you tried embedding the build directory inside the source direc

[CMake] Fwd: A bug for Code::Blocks MinGW?

2009-12-02 Thread John Drescher
-- Forwarded message -- From: John Drescher Date: Wed, Dec 2, 2009 at 8:44 PM Subject: Re: [CMake] A bug for Code::Blocks MinGW? To: Song Zhiwei > I use CMake to generate a Code::Blocks MinGW Makefiles for my project > Module4Test. Module4Test.cbp contains lines as

Re: [CMake] NMake Generation Error: machine type 'X86' conflicts with target machine type 'x64'

2009-11-13 Thread John Drescher
On Fri, Nov 13, 2009 at 4:01 PM, wrote: > > I'm sorry, I was being a little flippant. I had an un-escaped "\" in my > perl script that set the INCLUDE environment variable. Apparently, CMake was > unable to compile a test program because of this messed up path, and thus > assumed the box must be

Re: [CMake] NMake Generation Error: machine type 'X86' conflicts with target machine type 'x64'

2009-11-13 Thread John Drescher
On Fri, Nov 13, 2009 at 1:15 PM, wrote: > > Bill, > I think you were right. I took a hard look at my SDK paths and > changed a capital "I" to a lower-case "i" and everything seems better. > Thanks for help. > I am confused about that. Windows paths and filenames are not case sensitive.

Re: [CMake] [Insight-users] (no subject)

2009-11-12 Thread John Drescher
On Thu, Nov 12, 2009 at 7:26 PM, Xiaofeng Z wrote: > I was trying to build ITK in Window 7.  It appears cmake.exe was not able to > install the files into “C:\Program Files (x86)\ITK” or “C:\Program > Files\ITK” folder. > > > > Has anybody experienced the same? Yes. > Is it a bug with CMake? > I

Re: [CMake] Windows Qt CMake 2.8 build question

2009-11-12 Thread John Drescher
On Thu, Nov 12, 2009 at 12:51 PM, Steven Wilson wrote: > Caveat:  I am a complete Qt novice. > > I'm trying to build the 2.8 CVS branch of CMake on Windows and would like to > build the Qt GUI.  I downloaded and installed the LGPL/Free Windows Qt SDK > from the Nokia website.   When I use the CMak

[CMake] Fwd: How to build INSTALL project from the command line?

2009-11-10 Thread John Drescher
-- Forwarded message -- From: John Drescher Date: Tue, Nov 10, 2009 at 5:22 PM Subject: Re: [CMake] How to build INSTALL project from the command line? To: aaron_wri...@selinc.com On Tue, Nov 10, 2009 at 5:09 PM,   wrote: > > I've been trying to build the INSTALL proj

[CMake] Fwd: [Insight-users] Problem with CMakelist

2009-11-07 Thread John Drescher
-- Forwarded message -- From: Wen Shi Date: Sat, Nov 7, 2009 at 2:19 AM Subject: Re: [Insight-users] Problem with CMakelist To: John Drescher Hi john, Thank you for your reply. But actually I first used " INCLUDE(${VXL_USE_FILE})" But when I use CMake to generate t

Re: [CMake] Where can i get cmake-gui rpm for RHEL5 (Redhat 5) (download the source code is even better) ?

2009-11-02 Thread John Drescher
> Still no cmake-gui :-( > I have no experience with RHEL but I believe cmake-gui requires Qt 4.4 or greater. What version of Qt do you have installed? John ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.

[CMake] Fwd: Does 2.8.0 rc4 not have the ZERO_CHECK fix?

2009-10-29 Thread John Drescher
-- Forwarded message -- From: Kevin Burge Date: Thu, Oct 29, 2009 at 10:41 AM Subject: Re: [CMake] Does 2.8.0 rc4 not have the ZERO_CHECK fix? To: John Drescher I had a possibly related problem according to Bill Hoffman (windows frequently rebuilding targets).  I just switched

Re: [CMake] Does 2.8.0 rc4 not have the ZERO_CHECK fix?

2009-10-29 Thread John Drescher
On Thu, Oct 29, 2009 at 9:45 AM, Kevin Burge wrote: > Thanks, > The fix for that is in 2.8.0 rc4. Are you still having this bug? John ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensour

Re: [CMake] RC3: Multiple ZERO_CHECK warnings

2009-10-27 Thread John Drescher
On Tue, Oct 27, 2009 at 6:35 PM, L.M. de Vries wrote: > Hi, > > Running RC3 to generate a VS2008-project on Windows Vista generates the > following warning "ZERO_CHECK already exists"  (2 or 3 times). > After that it works fine... > This did not occur on 2.6. Any ideas? > There is a second thread

Re: [CMake] Open Source Memory Checker

2009-10-23 Thread John Drescher
On Fri, Oct 23, 2009 at 2:13 PM, Steve Huston wrote: >> If linux has valgrind which is an open source memory checker, is >> there any equivalent on Windows?  I noticed ctest supports purify, >> but it looks like that's only a pay solution.  Am I out of luck >> trying to find a memory checker that'

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

2009-10-20 Thread John Drescher
> I am trying to add Windows versioning information to my project. I am > using CMake 2.6.2 and VS2005. > > I have crafted a version.rc file which I use with all my libraries and > executables. This is working well except for one library which has 94 > include directories, one greater than the 93 d

Re: [CMake] Turning off extra Visual Studio options

2009-10-16 Thread John Drescher
On Fri, Oct 16, 2009 at 4:14 PM, Philip Lowman wrote: > You may want to also look into platform override files.   See the FAQ and > search for override. > Found that: http://www.itk.org/Wiki/CMake_FAQ#Make_Override_Files Thanks. I will have to bookmark that.. John _

Re: [CMake] Turning off extra Visual Studio options

2009-10-16 Thread John Drescher
On Fri, Oct 16, 2009 at 2:16 PM, Steven Wilson wrote: > Is there a way to turn off all the extra options that CMake tries to append > to compiler flags, linker flags, etc for the Visual Studio generators?   I > have a project that I want to explicity control every option for some of my > exes/libs

<    1   2   3   4   5   6   >