Re: [CMake] Project Folders in Visual Studio

2010-03-15 Thread John Drescher
On Mon, Mar 15, 2010 at 2:49 PM, aaron_wri...@selinc.com 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

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

[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 pgqui...@elpauer.org wrote: On Mon, Mar 15, 2010 at 7:49 PM,  aaron_wri...@selinc.com 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

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

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 one

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 luis.iba...@kitware.com 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

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 michael.schi...@ifn-magdeburg.de 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

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 dresche...@gmail.com wrote: On Wed, Mar 24, 2010 at 1:42 PM, Michael Schildt michael.schi...@ifn-magdeburg.de wrote: Hello, I use GDCM libaries in one project. Unfurtunally, i couldn't find a findGDCM module and i'm not experienced enough

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] Is there really any cmake support?

2010-04-04 Thread John Drescher
On Sun, Apr 4, 2010 at 5:30 AM, Fred Fred stan1...@hotmail.fr 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

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 like

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 ir...@beluga.phys.uvic.ca 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

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 alokgo...@hotmail.com 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

Re: [CMake] Linking error with VS2005

2010-05-21 Thread John Drescher
On Fri, May 21, 2010 at 8:01 AM, Daanen Vincent daa...@koelis.com 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

Re: [CMake] Linking error with VS2005

2010-05-21 Thread John Drescher
(MSVCR80D.dll) : error LNK2005: _fopen déjà défini(e) dans libcmtd.lib(fopen.obj) Are all libraries in your project (including itk) compiled by the same compiler version? Yes, all my libs and application are built with VS2005 compiler V -Message d'origine- De : John Drescher

[CMake] moc not being run successfully (every time) in Visual Studio 2003

2008-04-22 Thread John Drescher
I am running CMake-2.7.2008.04.21 and under Visual Studio moc does not run correctly all the time for my QT4 projects. Here is the error: -- Build started: Project: LungAnalysis, Configuration: Debug Win32 -- Generating qrc_LungAnalysis.cxx Generating moc_textwidget.cxx moc: Cannot

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread John Drescher
What are the flags used in MSVC to create a .com file? I assume you need a very old version of msvc to support 16 bit compiles. Microsoft compilers have not supported this since version 4.X I believe which was more than 10 years ago. John ___ CMake

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread John Drescher
On Wed, May 14, 2008 at 9:20 AM, PCJohn [EMAIL PROTECTED] wrote: Dear cmakers, I really need to set executable extension to .com instead to standard .exe (using MSVC). Is it possible to do that, or do I need to not use cmake for win32 platform? Reasons: I planned to port InventorTools

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread John Drescher
I know for a fact that this is not correct. I have written my own single windows applications that have a gui and a console and it is a .exe. Link the gui application with subsystem console. Ok. I found what I do. I have a post build step (in a vc6 project .dsp) that changes the subsystem

Re: [CMake] Issues with VS2005 Pro, CMake 2.4.8, Win XP, ParaView

2008-05-23 Thread John Drescher
Also, to embellish on my last email, I used the dependencywalker utility to discover that the MSVCR80.dll could not be found. I don't really know where to look for it either. (VS Newbie).. That is because it is hidden in cryptic folders off your windows install:

Re: [CMake] CMake, ITK, VTK, and Qt 4

2008-05-28 Thread John Drescher
This question involves the interaction of several different toolkits during the CMake configuration process, so I apologize if this is the wrong venue. I'm receiving the error: Warning: CMake is forcing CMAKE_CXX_RELEASE_FLAGS to /MD /O2 /Ob2 /DNDEBUG -DQT_NO_DEBUG to match that imported

Re: [CMake] FW: cmake newbie questions

2008-07-23 Thread John Drescher
On Wed, Jul 23, 2008 at 10:01 PM, Phil Smith [EMAIL PROTECTED] wrote: Thanks...that's a good suggestion; I think I've done it, but I'm at that point where I *think* I've done everything, and may have gone in circles. How do I tell it It's a make build without using the GUI? There must be

Re: [CMake] Visual Studio 10 - GenerateDebugInformation always false

2012-03-01 Thread John Drescher
On Thu, Mar 1, 2012 at 10:01 AM, Johannes Sasongko sason...@gmail.com wrote: Are you using CMake 2.8.7? If not, please upgrade and try with that version. If there's still a problem after that, let us know. Yes, I'm using 2.8.7. I've tested it on a very simple project (essentially just a

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-07 Thread John Drescher
I would have to say that I didn't dig into the QT4_WRAP_CPP macro at all. If I had I would have probably answered my own question. I will give you idea a shot and report back if it works or not. Thanks for the idea. Please do so. I would be very interested in your findings on this one..

Re: [CMake] Wrong cl.exe getting picked up

2012-03-15 Thread John Drescher
OK, but it does try to fill in the CMAKE_C_COMPILER value.  What are you suggesting?  That this is a bug or some kind of mistake on my part thinking that the value in CMAKE_C_COMPILER is somehow relevant for Visual Studio targets? CMAKE_C_COMPILER is not used for Visual Studio targets --

Re: [CMake] Clear cache on upgrade?

2012-04-23 Thread John Drescher
On Mon, Apr 23, 2012 at 1:46 PM, Robert Dailey rcdailey.li...@gmail.com wrote: I am wondering what a good rule of thumb is when upgrading CMake. Should I delete my cache after each upgrade? I'm on Windows. -- I never ever do that on windows. And I have done 100s of builds with CMake and many

Re: [CMake] Clear cache on upgrade?

2012-04-23 Thread John Drescher
A good rule of thumb is to try just upgrading CMake and running it on existing build trees. It's obviously quicker than a re-configure from scratch. But then, before complaining about something not working, try it in a fresh build tree first, then if it's still wrong, complain. :-) It's

Re: [CMake] Moving large MSVS projects to CUDA

2012-05-07 Thread John Drescher
I’ve had issues in the past trying to perform a configure command in CMake-gui when the buidl directory already existed..? I do this all the time for years. No problems at all. John -- Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] How to deal with pre built 3rd party libs?

2012-05-15 Thread John Drescher
I have a project that depends on 3rd party dll's (libxml2). Is there a 'best practice' to deal with associated files, .h, .lib .dll of such within a CMake project? My library needs to link to the 3rd party lib, and needs its dll for execution (obviously), so I feel the need for copying this

Re: [CMake] cmakelists.txt

2012-06-24 Thread John Drescher
On Sun, Jun 24, 2012 at 5:57 AM, Heena Mahur hen...@rocketmail.com wrote:  Hey,I need to that what should i do in cmakelists.txt http://pastebin.com/raw.php?i=BGV9NAmQ since i am getting this error  (target_link_libraries):   Cannot specify link libraries for target ptedit_1 which is not built

Re: [CMake] file cannot create direc

2012-07-21 Thread John Drescher
file cannot create directory: C:/JenkinsCI/jobs/te/workspace/_CPack_Packages/win32/ZIP/libhello-1.0.9 /lib. Maybe need administrative privileges. Does this folder exist? Can you create this using your user account? John -- Powered by www.kitware.com Visit other Kitware open-source

Re: [CMake] file cannot create direc

2012-07-21 Thread John Drescher
well this is created and doesn't exist from the beginning: _CPack_Packages/win32/ZIP/libhello-1.0.9 when I try to go in and delete this folder by hand I can't. The libhello is locking up the hole thing. It just says I can't remove it and I have tried everything. I can create things in the

Re: [CMake] Why are my static libs not being read?

2012-07-31 Thread John Drescher
The qt libraries are included in the target link flag (this project uses qt of course), however the two lib files that exist in the lib folder in the same directory are either not recognized. They draw up linker issues in the compiler, even though I can tell through the cmake gui that it does

Re: [CMake] Why are my static libs not being read?

2012-07-31 Thread John Drescher
On Tue, Jul 31, 2012 at 2:21 PM, Toronto Andrew andrew.loui...@gmail.com wrote: Include it using the flags? Like so: TARGET_LINK_LIBRARIES(CppSampleQt01 ${QT_LIBRARIES} SIMPLONLIB SIMPLONIMGPROC) ? Because when I did this, the libs were not found either. I think it should be:

Re: [CMake] Why are my static libs not being read?

2012-07-31 Thread John Drescher
On Tue, Jul 31, 2012 at 2:54 PM, Toronto Andrew andrew.loui...@gmail.com wrote: Thank you John, this did work. I get the idea now, thank you. I have another concern though, that I hope I can be helped with though it's doesn't fall under the original problem. So I am using a project within my

Re: [CMake] CMake is unable to find QtCore!

2012-08-12 Thread John Drescher
On Sun, Aug 12, 2012 at 10:30 AM, Toronto Andrew andrew.loui...@gmail.com wrote: I get the following errors when trying to build my Qt project: CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindQt4.cmake:595 (MESSAGE): Could NOT find QtCore. Check And I need to

Re: [CMake] CMake is unable to find QtCore!

2012-08-12 Thread John Drescher
On Sun, Aug 12, 2012 at 10:33 AM, John Drescher dresche...@gmail.com wrote: On Sun, Aug 12, 2012 at 10:30 AM, Toronto Andrew andrew.loui...@gmail.com wrote: I get the following errors when trying to build my Qt project: CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules

Re: [CMake] cmake-gui's separation between configuration generation

2012-08-23 Thread John Drescher
Is the separation between configuration generation really necessary for cmake-gui? I ask because several of my co-workers are confused between the differences in the two, even though I explain it. Honestly there isn't really a reason that I can think of to do a configure without a generate,

Re: [CMake] Formatting CMakeLists

2012-08-23 Thread John Drescher
On Thu, Aug 23, 2012 at 11:39 AM, Jason T. Slack-Moehrle slackmoeh...@gmail.com wrote: A few questions on formatting the CMakeLists file. Is there sort of a template that everyone uses to ensure not overwriting options, etc? Second, when using commands like: SET( CORE_SOURCE_FILES main.cpp

Re: [CMake] EXECUTABLE_OUTPUT_PATH showing in list of cache variables

2012-08-23 Thread John Drescher
On Thu, Aug 23, 2012 at 4:55 PM, Robert Dailey rcdailey.li...@gmail.com wrote: I'm not sure if my eyes are playing tricks on me, but after upgrading to 2.8.9 I'm seeing EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH in my list of cache variables now, I don't remember seeing them before. Is

Re: [CMake] [Cmake] Retrieve all runtime dependencies

2012-09-03 Thread John Drescher
On Mon, Sep 3, 2012 at 11:05 AM, Klaim - Joël Lamotte mjkl...@gmail.com wrote: Hi, Is there any way in CMake to get a list of all binaries related to one target? What I mean is that assuming I have a target, say a library lib_a, that depends on lib_b and lib_c which are either SHARED or

Re: [CMake] [Insight-users] Building FLTK for Visual Studio 2010

2012-09-04 Thread John Drescher
On Tue, Sep 4, 2012 at 6:33 AM, Zein Salah zeinsa...@gmail.com wrote: Hi, Previously, i used to build fltk 1.1.7 with Cmake for VS2008 and everything (ITK, InsightApplication, etc.) worked fine. I try now to make the same using Cmake 2.8.9 for VS2010. Building FLTK 1.1.7 works fine (No

Re: [CMake] Cross compiling for Windows x64/amd64 on 32-bit Windows

2012-10-01 Thread John Drescher
On Mon, Oct 1, 2012 at 4:35 PM, Arindam Mukherjee arindam.muker...@gmail.com wrote: Hi, I have a Windows XP build setup with Visual Studio 2008 SP1 and Windows SDK 6. I have set up a CMake project for a source base that is built on Linux, Solaris, AIX and Windows. So far I have managed to get

Re: [CMake] Specifying libraries with a variable

2012-10-02 Thread John Drescher
On Tue, Oct 2, 2012 at 9:11 AM, Arindam Mukherjee arindam.muker...@gmail.com wrote: Hi, I want to define a single variable in a top-level CMakeLists.txt and use it in multiple CMakeLists.txt in sub-directories to specify target_link_libraries for executables built in these subdirectories. I

Re: [CMake] cmake on Windows x64

2012-10-12 Thread John Drescher
I noticed that there is cmake binary package for Windows x64. Should a 32-bit cmake (under syswow6432) be adequate for all cmake tasks? If not, what is the right way to build cmake for 64-bit. I tried building it on a 32-bit build server using the 64 bit generator (this build server routinely

Re: [CMake] cmake on Windows x64

2012-10-15 Thread John Drescher
Except that you have CMAKE_SYSTEM_PROCESSOR == x86 (event for Win64 generators) in your CMake files along with all search paths which sometimes very inconvenient. I am not sure that has ever caused me a problem on any of the 64 bit applications I have written. The only problem I had with CMake

Re: [CMake] cmake on Windows x64

2012-10-15 Thread John Drescher
Having CMAKE_SYSTEM_PROCESSOR be x86 for a 64-bit build is very inconvenient when detecting machine-dependent compiler flags, constructing directory names for outputs based on configuration, configuring third party search directories, etc. It's always possible to work around (among other

Re: [CMake] Cmake link trouble in Windows

2012-10-23 Thread John Drescher
Thanks for your help。 but now i am in another trouble. In Windows,i am trying to build a shard library,It needs to link dynamic library and static library。 when i want to link a dynamic library,it comes: (fatal error U1073:does not know how to generate ACE.lib) AUX_SOURCE_DIRECTORY(.

Re: [CMake] How to get Visual Studio to use more than a single core for compiling

2012-11-27 Thread John Drescher
On Tue, Nov 27, 2012 at 7:21 AM, Michael Jackson mike.jack...@bluequartz.net wrote: On Nov 27, 2012, at 12:46 AM, Titus von Boxberg ti...@v9g.de wrote: Am 27.11.2012 05:24, schrieb Michael Jackson: That will teach me to hit enter in GMail.. My question is this: What is the magic CMake

Re: [CMake] How to get Visual Studio to use more than a single core for compiling

2012-11-27 Thread John Drescher
On Tue, Nov 27, 2012 at 9:41 AM, Mateusz Loskot mate...@loskot.net wrote: On 27 November 2012 14:23, John Drescher dresche...@gmail.com wrote: On Tue, Nov 27, 2012 at 7:21 AM, Michael Jackson mike.jack...@bluequartz.net wrote: On Nov 27, 2012, at 12:46 AM, Titus von Boxberg ti...@v9g.de

Re: [CMake] How to get Visual Studio to use more than a single core for compiling

2012-11-27 Thread John Drescher
Right, perhaps complex inter-project dependencies halt the processes. I believe this is part of the reason. Projects like ITK with hundreds of small utilities tend to utilize the cores after the dependent libraries are built however my code that has very few utilities and significantly more

Re: [CMake] Testing Qt 5 Beta 2 CMake files

2012-11-28 Thread John Drescher
I emailed before about reviewing Config files that are being shipped with Qt 5 and got great feedback: http://thread.gmane.org/gmane.comp.kde.devel.buildsystem/7165/focus=41551 Now that Qt 5 beta 2 is out, I'd like to ask for feedback again on anything that can still be changed before Qt

Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit

2012-11-28 Thread John Drescher
A colleague mentioned that with the same setup he was getting the same error, and then installed SP1 for VS 2010 and things started working. I also remember that Visual Studio 2012 RTM had an optimizer bug that caused Qt applications to crash so the first thing I always do after installing VS

Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-11 Thread John Drescher
On Tue, Dec 11, 2012 at 12:02 PM, Stephen Kelly steve...@gmail.com wrote: John Drescher wrote: I emailed before about reviewing Config files that are being shipped with Qt 5 and got great feedback: http://thread.gmane.org/gmane.comp.kde.devel.buildsystem/7165/focus=41551 Now that Qt 5

Re: [CMake] COMPILE_DEFINITIONS

2012-12-11 Thread John Drescher
On Tue, Dec 11, 2012 at 2:24 PM, John Drescher dresche...@gmail.com wrote: My goal is to a specific definition to the Debug and RelWithDebInfo configurations for all targets in the project but not to the Release configuration when using VisualStudio. I believe that COMPILE_DEFINITIONSCONFIG

Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-11 Thread John Drescher
In VTK 5.10, there were some other configure time options (I'd have to go look them up or try it out) to control building the Qt-related bits... In vtk-5.X you needed to enable VTK_USE_GUISUPPORT then that gave you the ability to enable VTK_USE_QT John -- Powered by www.kitware.com Visit

Re: [CMake] [vtkusers] Fwd: CMAKE_MAKE_PROGRAM is not set - Win7 and Visual Studio 10

2012-12-12 Thread John Drescher
On Wed, Dec 12, 2012 at 4:03 AM, Benoît Thiébault thieba...@artenum.com wrote: Hi everyone, I sent this question on CMake mailing list a week ago and never had any answer. As it deals with compiling VTK, I'm thinking maybe some of you have a solution. Can't you specify the location of the

Re: [CMake] [vtkusers] Fwd: CMAKE_MAKE_PROGRAM is not set - Win7 and Visual Studio 10

2012-12-12 Thread John Drescher
The question is: what is the location of the make program? If I remember correctly, on Windows XP, I did not have to install MinGW to compile VTK. Just Visual Studio Express was required. Do I have to install MinGW? Not unless you want to move your development to MinGW. Or is it provided

Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-12 Thread John Drescher
I didn't try running any examples, but I also ported it to Qt 5. My patch for that is attached. John, the patch for older VTK versions should be similar if you wish to try it. I will see what I can do this weekend. Thanks, John -- Powered by www.kitware.com Visit other Kitware open-source

Re: [CMake] How to handle RelWithDebInfo and MinSizeRel when not built?

2013-01-18 Thread John Drescher
The suggestion in the bug report looks somewhat reasonable to me, but then again, we don't actually create separate debug info, and the 'Release' configuration would be no different to the 'RelWithDebInfo' configuration, so it's sort of a 'lie'. The real need for it though is probably that

Re: [CMake] unable to view file properties using CMAKE 2.8.7 in VS2010

2013-01-31 Thread John Drescher
Hey there. I created a bare minimum cmake project ADD_LIBRARY (foo foo.c) When I open that solution in VS2010 and right click on foo.c and select properties, the properties dialog comes up but when I try to view each property (C/C++ General, Optimization, Preprocessor, etc…), nothing

Re: [CMake] So Long

2013-02-01 Thread John Drescher
Thought I'd ping the CMake mailing lists one last time before I have to give up david.c...@kitware.com... ;-) Thanks for all your hard work on this.. John -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

Re: [CMake] Problem in configuring VTK with Visual Studio 2010, Windows 7 64bit.

2013-02-20 Thread John Drescher
On Wed, Feb 20, 2013 at 2:07 PM, amitsuveer amitsuv...@gmail.com wrote: I am using cmake-2.8.10.2-win32-x86 and vtk-5.10.1. I am trying to configure VTK, I have installed Visual Studio 10 (not the express version, the full one along with SP1), with x64 support. However, when selecting Visual

Re: [CMake] CMAKE_SYSTEM_PROCESSOR says x86 on Win64

2013-02-21 Thread John Drescher
On Thu, Feb 21, 2013 at 2:46 PM, Martin Koller martin.kol...@etm.at wrote: Hi all, I found an old cmake bug entry (see below) for the problem I have: I downloaded and installed the 32bit cmake exe on a 64bit windows and wanted to build our project as 64bit executable. However in our cmake

Re: [CMake] Cmake and Visual Studio platforms

2013-02-28 Thread John Drescher
There are multiple posts in multiple forums asking this question, so naturally there is public need for this feature. How come CMake never aimed at creating a solution for this? I suspect there is some great design issue that prevents implementing it in CMake. There are several platform and

Re: [CMake] Cmake and Visual Studio platforms

2013-02-28 Thread John Drescher
On Thu, Feb 28, 2013 at 6:31 AM, John Drescher dresche...@gmail.com wrote: There are multiple posts in multiple forums asking this question, so naturally there is public need for this feature. How come CMake never aimed at creating a solution for this? I suspect there is some great design issue

Re: [CMake] Cmake and Visual Studio platforms

2013-03-01 Thread John Drescher
If CMake developers say that the code is simply not structured like that, or it is too much work to rewrite these parts (and a few others that might depend on it), then I leave this subject be and not bother again with it. David led the CMake development for years. John -- Powered by

Re: [CMake] Cmake and Visual Studio platforms

2013-03-01 Thread John Drescher
On Fri, Mar 1, 2013 at 10:52 AM, John Drescher dresche...@gmail.com wrote: If CMake developers say that the code is simply not structured like that, or it is too much work to rewrite these parts (and a few others that might depend on it), then I leave this subject be and not bother again

Re: [CMake] Check for working C compiler using: Visual Studio 10 -- broken

2013-03-05 Thread John Drescher
On Tue, Mar 5, 2013 at 10:58 AM, David Cole dlrd...@aol.com wrote: Is your VS 2010 up to date with respect to available service packs? I was going to ask that because Visual Studio 2010 RTM has a nasty optimizer bug that caused me some pain in the past. SP1 fixed that issue. John -- Powered

Re: [CMake] Build several targets using cmake --build dir

2013-03-14 Thread John Drescher
I use cmake 2.8.10 on windows. I would like to build several targets with cmake --build dir so the underlying build tool to do parallel jobs. Currently it only seems to be possible to build one target at a time, using --target .

Re: [CMake] How to avoid having /D _MBCS ?

2013-03-21 Thread John Drescher
On Thu, Mar 21, 2013 at 10:20 AM, Martin Koller martin.kol...@etm.at wrote: In my win project, when I use the visual studio generator (64bit), I always get the /D _MBCS flag in the compiler options (started with msbuild). When I generate Makefiles with the same project (JOM NMakefiles), _MBCS

Re: [CMake] [vtkusers] compiling examples using Xcode

2013-04-03 Thread John Drescher
I already have CMake 2.8.1 installed. Sorry for not specifying that earlier. I also have installed the GIT repository version of VTK. If CMake is not found then it is either not properly installed or not in your path. John -- Powered by www.kitware.com Visit other Kitware open-source

Re: [CMake] Cannot restore timestamp error on Windows

2013-04-24 Thread John Drescher
I installed it and it ran one time and I didn't see the error, but it's intermittent so that's not definitive. Unfortunately one of my cmake files failed (later on; this is a cmake file from a smaller sub-project): CMake Error at CMakeLists.txt:190 (TARGET_LINK_LIBRARIES):

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
Here it is: #--- project(test) cmake_minimum_required(VERSION 2.4.0) find_package(Qt4 REQUIRED) SET(qtproject_UIS mainwindow.ui) QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS}) include_directories(${CMAKE_CURRENT_BINARY_DIR}) add_executable(test ${qtproject_SRCS} ${qtproject_UIS_H})

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
project(test) cmake_minimum_required(VERSION 2.4.0) find_package(Qt4 REQUIRED) SET(qtproject_UIS mainwindow.ui) QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS}) include_directories(${CMAKE_ CURRENT_BINARY_DIR}) add_executable(test ${qtproject_SRCS} ${qtproject_UIS_H} main.cpp)

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
I put all the folders in the CMakeLists.txt, but still not working... TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters ITKAlgorithms ITKNumerics ITKSpatialObjetcs ITKReview ITKPatented ${QT_LIBRARIES}) Again the missing header files problem has nothing at all to do with linking.

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
On Wed, Apr 24, 2013 at 3:13 PM, Gabriel Santiago santiago.eletr...@gmail.com wrote: I did it, but still not working... Getting the same error message as before. Are you using very old versions of Qt, ITK and CMake? I ask because of this line cmake_minimum_required(VERSION 2.4.0) The current

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
On Wed, Apr 24, 2013 at 3:31 PM, Gabriel Santiago santiago.eletr...@gmail.com wrote: Actually my CMake is 2.8.7, ITK is 3.20.1 and QT is the latest... I believe this file should work. Although I really do not have any more time to help if it does not. project(test)

Re: [CMake] MSVC10 redistributable issue

2013-05-02 Thread John Drescher
On Thu, May 2, 2013 at 3:35 PM, Laszlo Papp lp...@kde.org wrote: Hi, I tried to install the following redistributable package after seeing the issue below, but it did not help, not even after a reboot. Got a clue? It looks like you were not supposed to install the redistributable but to put

Re: [CMake] custom NSIS installer

2013-05-06 Thread John Drescher
It states that... To start work on a custom NSIS script, simply create a file (or copy) into your module path (e.g. CPACK_MODULE_PATH) called NSIS.template.in. Checking the cmake documentation, there is no predefined variable named CPACK_MODULE_PATH. I could find a NSIS.template.in. in

Re: [CMake] building a 64 bit project with: mingw32, Qt and VTK

2013-05-24 Thread John Drescher
Qt 4.5.0 or greater not found. Please check the QT_QMAKE_EXECUTABLE variable. Did you follow the above advice? I mean go in cmake-gui and make sure this variable contains the path to the qmake executable. John -- Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Multiple versions of ITK in one build?

2013-05-28 Thread John Drescher
On Tue, May 28, 2013 at 10:16 AM, Zamir Khan zamir.k...@gmail.com wrote: We have a project where multiple modules rely on ITK. Most modules have been upgraded to ITK 4.31, but one still relies on ITK 3.20 and it would take a significant effort to upgrade it. In the meantime, is there a way for

Re: [CMake] Target Properties FOLDER not working?

2013-05-30 Thread John Drescher
On Thu, May 30, 2013 at 1:53 PM, Michael Jackson mike.jack...@bluequartz.net wrote: I am trying to group some of my targets for my Visual Studio users and I am using the following code: # add_executable(StructArrayTest ${DREAM3DTest_SOURCE_DIR}/StructArrayTest.cpp)

Re: [CMake] [#RIT-489-15815]: Re: Visual Studio 10 compiler identification unknown

2013-08-05 Thread John Drescher
Any idea who has subscribed pir...@teamspeakusa.com to this list? I have seen this spam on multiple email lists not just cmake. This is getting very annoying. John -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Re: [CMake] Visual Studio 10 compiler identification unknown

2013-08-06 Thread John Drescher
Configuration of VTK with cmake-gui was ok. Don't know how it was fixed. Does it help if I send the output of the minimal test case? I suspect deleting the cache in cmake-gui then running cmake-gui from the windows shortcut will break it again. BTW, I usually run cmake-gui from a visual

Re: [CMake] [vtkusers] Problems building Vtk on Windows 7

2013-10-04 Thread John Drescher
Deleting cache and reconfiguring doesn't help... I get the same errors repeatedly! Why does it say that it can't recognize the C and CXX compilers? Do you think I should try with some vanilla Visual Studio 12 as opposed to the Ultimate I got from MS? Wait a minute. You said Visual Studio

Re: [CMake] [vtkusers] Problems building Vtk on Windows 7

2013-10-04 Thread John Drescher
On Fri, Oct 4, 2013 at 10:34 AM, John Drescher dresche...@gmail.com wrote: Deleting cache and reconfiguring doesn't help... I get the same errors repeatedly! Why does it say that it can't recognize the C and CXX compilers? Do you think I should try with some vanilla Visual Studio 12

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread John Drescher
+1 for updating cmake-gui to work equally to ccmake But my opinion regarding CMAKE_MODULE_PATH is different. The problem is that alot of the default find-modules don't work because the dependency is not in the location where the find-module expects it. Currently there are only two

Re: [CMake] CMake fails on Win7 x64 with VS 2012

2013-12-28 Thread John Drescher
On Sat, Dec 28, 2013 at 8:35 AM, Ansis Māliņš ansis.mal...@gmail.com wrote: The minimal CMakeLists.txt with content CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(CMakeTest) on CMake 2.8.12.1 on Windows 7 64 bit with Visual Studio 2012 produces the result CMake Error at C:/Program Files

Re: [CMake] CMake fails on Win7 x64 with VS 2012

2013-12-28 Thread John Drescher
On Sat, Dec 28, 2013 at 9:05 AM, Ansis Māliņš ansis.mal...@gmail.com wrote: Yes, I'm using Visual Studio 11 (aka 2012) generator. Did you try running cmake-gui from a Visual Studio 2012 x64 Command Prompt so that the compiler environment variables are set? John -- Powered by www.kitware.com

Re: [CMake] Fwd: Visual Studio command line from CMake

2014-01-09 Thread John Drescher
Why not just write your own batch ('buildit.bat') file that does: call vcvarsall.bat nmake (or whatever the command to build in the VS command prompt is...) And then your command to build is: C:/full/path/to/buildit.bat It's presumably in a Windows-specific chunk of your

Re: [CMake] Linking Error with Visual Studio 2013 x64

2014-04-17 Thread John Drescher
Is there some option to export automatically some methods without using __declspec(dllexport)? No. There are workarounds like in http://stackoverflow.com/questions/225432/export-all-symbols-when-creating-a-dll but it's too much work. Basically you want to define a macro that resolves to

Re: [CMake] Are the [Project name]_SOURCE_DIR variables stored in the cache ?

2014-05-01 Thread John Drescher
I thought they probably were. My question was really if the behaviour that results from that was desirable. I can't see any reason why they should be cached as they aren't user configurable variables. Would it break anything badly if they were not stored in the cache ? It would result in

Re: [CMake] Are the [Project name]_SOURCE_DIR variables stored in the cache ?

2014-05-01 Thread John Drescher
On Thu, May 1, 2014 at 1:54 PM, Glenn Coombs glenn.coo...@gmail.com wrote: What I am saying is that project(foo) should internally execute the equivalent of set(foo_SOURCE_DIR /path/to/source) rather than set(foo /path/to/source CACHE STRING). That way it would fail on every run if you

Re: [CMake] Are the [Project name]_SOURCE_DIR variables stored in the cache ?

2014-05-01 Thread John Drescher
On Thu, May 1, 2014 at 2:16 PM, Matthew Woehlke mw_tr...@users.sourceforge.net wrote: On 2014-05-01 13:35, John Drescher wrote: I thought they probably were. My question was really if the behaviour that results from that was desirable. I can't see any reason why they should be cached

Re: [CMake] Question of using cmake in Windows

2014-06-23 Thread John Drescher
Ok, run cmake -G MinGW Makefiles -DCMAKE_C_COMPILER=/c/mingw-w64-4.9.0/mingw64/bin I got this error: CMake Error: the source directory does not appear to contain CMakeLists.txt What I am missing? You are not passing the folder of the source. John -- Powered by www.kitware.com

Re: [CMake] Changing the the current generator in CMake GUI

2014-07-11 Thread John Drescher
On Fri, Jul 11, 2014 at 10:33 AM, Edward Diener eldlistmaili...@tropicsoft.com wrote: Shouldn't there be a way to change the current generator in the CMake GUI ? It seems like I can only do this if I choose a new Where to build the binaries path. But what if I just want to change the current

Re: [CMake] CMAKE changing Visual Studio Settings

2014-07-21 Thread John Drescher
So CMAKE can't control the options int he *.user files I guess :-\? Would a potential workaround be to find a command line tool that can edit these and run it as a post-build script? CMake gives you the functionality needed to edit these via your own script. I mean reading and writing files

Re: [CMake] VTK compiling problem with CMake

2014-09-23 Thread John Drescher
Did you try runing cmake-gui from a VisualStudio 2010 x64 command prompt? John On Tue, Sep 23, 2014 at 1:08 PM, lanhz h1...@ucsd.edu wrote: Hi, I'm trying use CMake to build VTK, but got error as below. I searched the internet and tried many ways suggested, but they didn't work. The OS is

Re: [CMake] CMake and 64-bit Systems

2014-12-04 Thread John Drescher
does CMake run on 64-bit OS (e.g. Ubuntu 14.10 64-bit) without problems or are there some workarounds necessary to get it run? If so, is there a description available? I have not had any real issue with cmake (32 or 64 bit binary) on 64 bit linux or windows. John -- Powered by

<    1   2   3   4   5   6   >