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

2012-11-27 Thread Petr Kmoch
Hi all, VS 2012 and VS 2010 installed together *can* actually cause problems (it certainly did for me). I was getting exactly the same error as David Doria, and I had to install a service pack for 2010 to overcome it. See e.g. http://social.msdn.microsoft.com/Forums/da-DK/vssetup/thread/d10adba0-e

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

2012-11-27 Thread Andrew Maclean
VS 2012 will not cause a problem I have both VS 2010 and VS2012 (both express) installed but am waiting for QT to be able to built for VS2012 before moving to VS2012 express. Regards Andrew -- Forwarded message -- > From: David Doria > To: David Cole > Cc: cmake Mailing List

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

2012-11-27 Thread Andrew Maclean
I have no problems with Visual Studio 2010 or VS 2010 Express. The following link may help: http://www.vtk.org/Wiki/VTK/GitMSBuild There is no need to set the VS 64-bit command prompt and run cmake-gui from inside it. I generally run cmake-gui by just clicking on the icon. Try running cmake-gui dir

[CMake] VS2012 Platform Toolset

2012-11-27 Thread Kamal Mansouri
Hello, With Visual Studio 2012 Update 1 released, I am hoping to build a C++ project to supportWindows XP. Is there a way to use CMake to generate a project that targets Windows XP?Basically CMake would need to generate a project file that uses: Platform Toolset = Visual Studio 2012 - Windows X

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

2012-11-27 Thread David Doria
On Tue, Nov 27, 2012 at 4:37 PM, David Cole wrote: > Are you using an Express edition of VS without an SDK installed? > > If so, install an SDK and try again from a clean build directory. > > If not, we'll need more information. VS 2010 on Windows 7 works great > for me, even for a VTK build tree.

Re: [CMake] swig - how do I set compile flags on the generated files?

2012-11-27 Thread Nick Overdijk
I had a derp, sorry about that. Obviously you don't, hah. You can put all the swig-generated files in a directory, and then perhaps set the properties with a glob? On 2012-28-11, at 02:22:00 , Nick Overdijk wrote: > Aren't you the one generating those names? > > http://www.swig.org/Doc1.3/Int

Re: [CMake] swig - how do I set compile flags on the generated files?

2012-11-27 Thread Nick Overdijk
Aren't you the one generating those names? http://www.swig.org/Doc1.3/Introduction.html#Introduction%5Fbuild%5Fsystem On 2012-28-11, at 01:11:24 , Miller Henry wrote: > Our normal coding standards requires zero warnings with –wall –wextra > (gcc/clang), but often the swig generated file has wa

[CMake] swig - how do I set compile flags on the generated files?

2012-11-27 Thread Miller Henry
Our normal coding standards requires zero warnings with -wall -wextra (gcc/clang), but often the swig generated file has warnings. We don't mind turning these warnings off for the generated file, but we still want to see them for other files in the project. However I'm stumped on how to do t

Re: [CMake] Unspecified arguments to CMake script

2012-11-27 Thread David Cole
It's possible, but it's probably not advisable. The command line argument handling code in CMake is, shall we say, a smidge on the fragile side. It would be better to stream your arguments into a file, perhaps one arg per line in a text file, and then use CMake's file reading capabilities to proc

Re: [CMake] CPACK: configured variables in CMake file are ignored

2012-11-27 Thread Paolo Ciccone
Yes. I use Sublime Edit 2 for all my work, Xcode is used just to compile the project. I'll look into that and possibly contact the developer. Showing the "foreign" chars would have saved me a few hours and avoided pestering the mailing list about such trivial issue :) Thanks again. --- Paolo Cicco

[CMake] Unspecified arguments to CMake script

2012-11-27 Thread James Bigler
Is it possible to have an unbounded number of arguments to a script processed by CMake using the -P argument? I need to specify a variable number of arguments, so using -D isn't going to help much. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/

Re: [CMake] CPACK: configured variables in CMake file are ignored

2012-11-27 Thread Eric Noulard
2012/11/27 Paolo Ciccone : > Hi Eric. > You nailed it! Those characters got inserted when I copies and pasted the > names of the variables fromt the CPack wiki. Once removed everything works > perfectly. Fantastic! Happy to ear that. > > Thank you a million. You're welcome. May be XCode (or the

Re: [CMake] CPACK: configured variables in CMake file are ignored

2012-11-27 Thread Paolo Ciccone
Hi Eric. You nailed it! Those characters got inserted when I copies and pasted the names of the variables fromt the CPack wiki. Once removed everything works perfectly. Fantastic! Thank you a million. --- Paolo Ciccone www.preta3d.com www.paolociccone.com On Tue, Nov 27, 2012 at 1:34 PM, Eric N

[CMake] CMake 2.8.10.2 available for download

2012-11-27 Thread David Cole
And a few more... Here are some important bug fixes to the CMake 2.8.10 release. Thanks going out to Alex Neundorf, Brad King, Rolf Eike Beer, (and me), … fixes for the following problems are now available in a 2.8.10.2 bug fix release. The change log page for this bug-fix only release is here: h

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

2012-11-27 Thread David Cole
Are you using an Express edition of VS without an SDK installed? If so, install an SDK and try again from a clean build directory. If not, we'll need more information. VS 2010 on Windows 7 works great for me, even for a VTK build tree... On Tue, Nov 27, 2012 at 3:48 PM, David Doria wrote: > I a

Re: [CMake] CPACK: configured variables in CMake file are ignored

2012-11-27 Thread Eric Noulard
2012/11/27 Paolo Ciccone : > I have prepared a testcase that I can use to replicate the issue all the > time. > I am running Mac OS 10.8.2 (ML) and I tested this case with both CMake/CPack > 2.8.10.1 and 2.8.9. > > The command issued is simply: > > cmake -G Xcode > > You can find the test case, whi

Re: [CMake] ifort,icc,icpc: ld: cannot find -lcilkrts

2012-11-27 Thread Ilias Miroslav
Dear all, I am writing you concerning my one-year old message: http://www.cmake.org/pipermail/cmake/2011-November/047460.html , to which I replied, but it was bounced (see email below). On one server I found no asisgnement of offending libcilkrts.so for static linking with Intel: content of

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

2012-11-27 Thread David Doria
I am trying to build VTK for the first time on a 64bit Windows 7 system. I have Visual Studio 2010 installed. I ran the 64bit Visual Studio Command Prompt and ran 'cmake-gui' from it. I pointed it to the VTK source directory and gave it a build directory. When I configure, I get: -

[CMake] List from strings (CMAKE_CXX_FLAGS and friends)

2012-11-27 Thread James Bigler
I'm running into this again, and I trawled through the mailing list, and according to Bill (4/11/2009 - managing lists with space separated elements), I should be able to get a list from a string with a single command. If you want to convert a string to a list you can do it like this: set(list ${

Re: [CMake] CPACK: configured variables in CMake file are ignored

2012-11-27 Thread Paolo Ciccone
I have prepared a testcase that I can use to replicate the issue all the time. I am running Mac OS 10.8.2 (ML) and I tested this case with both CMake/CPack 2.8.10.1 and 2.8.9. The command issued is simply: cmake -G Xcode You can find the test case, which is stripped down to almost nothing here:

Re: [CMake] CPACK: configured variables in CMake file are ignored

2012-11-27 Thread Eric Noulard
2012/11/27 Paolo Ciccone : > Hi Eric. > >> >> Do you mean that inside "CPackConfig.cmake" the value you(ve set before >> "INCLUDE(CPack)" are not used? >> > > That is correct. So this is plain wrong and I don't understand how it is possible?? We should first find to fix this before examining other

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

2012-11-27 Thread Gary Little
Hmm, boy was that useless. I searched and found lot's a stuff about Mutant Ninja Turtles … I'm a bit old for that. I did find that ninja seems to be part of Chromium. This link will probably get you what you need for Windows: http://code.google.com/p/chromium/wiki/NinjaBuild#Configure_your_syste

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

2012-11-27 Thread Gary Little
Sorry, to much Mac OS X running around my ancient cranium right now. Bing or use your favourite search engine to find a ninja download for Windows. I have it available via a company server so I know one exists, just not where you can get to it. Gary Little gglit...@comcast.net C 952-454-4629 H

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

2012-11-27 Thread Vyacheslav Karamov
How could I use it on Windows? 27.11.2012 17:36, Gary Little пишет: Try ninja, which is available via macports. My primary project uses CMake to create 3 Windows build environments: nmake, VisualStudio, and ninja. In the VS environment I can use msbuild /m .sln. The ninja environment is about

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

2012-11-27 Thread David Cole
FYI: in any environment, you can use "cmake --build ." in the build directory to build from the command line. On Tue, Nov 27, 2012 at 10:36 AM, Gary Little wrote: > Try ninja, which is available via macports. My primary project uses CMake to > create 3 Windows build environments: nmake, VisualSt

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

2012-11-27 Thread Gary Little
Try ninja, which is available via macports. My primary project uses CMake to create 3 Windows build environments: nmake, VisualStudio, and ninja. In the VS environment I can use msbuild /m .sln. The ninja environment is about the tastest build that I have available for Windows. Gary Little ggli

Re: [CMake] Disable Warning: "Manually-specified variables were not used by the project"

2012-11-27 Thread Jean-Christophe Fillion-Robin
Hi Sören, Command line option "--no-warn-unused-cli" should help you. See http://www.cmake.org/cmake/help/v2.8.8/cmake.html#opt:--no-warn-unused-cli and http://www.cmake.org/pipermail/cmake/2011-February/042908.html Hth Jc On Tue, Nov 27, 2012 at 10:10 AM, Sören Textor wrote: > Hello > Is it

[CMake] Disable Warning: "Manually-specified variables were not used by the project"

2012-11-27 Thread Sören Textor
Hello Is it possible to disable the warning: "Manually-specified variables were not used by the project"? This warning is nice, but in my case I'm not interessted in and I know that I put some unused variables for certain circumstances. Best SirAnn -- Powered by www.kitware.com Visit other K

Re: [CMake] CPACK: configured variables in CMake file are ignored

2012-11-27 Thread Paolo Ciccone
Hi Eric. > Do you mean that inside "CPackConfig.cmake" the value you(ve set before > "INCLUDE(CPack)" are not used? > > That is correct. > > Am I overlooking something? > > Not something obvious I think. > Could it be possible that INCLUDE(CPack) has been called by a subproject > before you act

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 inte

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

2012-11-27 Thread Mateusz Loskot
On 27 November 2012 14:47, John Drescher wrote: > On Tue, Nov 27, 2012 at 9:41 AM, Mateusz Loskot > wrote: > > On 27 November 2012 14:23, John Drescher wrote: > >> > >> On Tue, Nov 27, 2012 at 7:21 AM, Michael Jackson > >> wrote: > >> > > >> > > >> > On Nov 27, 2012, at 12:46 AM, Titus von Box

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 wrote: > On 27 November 2012 14:23, John Drescher wrote: >> >> On Tue, Nov 27, 2012 at 7:21 AM, Michael Jackson >> wrote: >> > >> > >> > On Nov 27, 2012, at 12:46 AM, Titus von Boxberg wrote: >> > >> >> Am 27.11.2012 05:24, schrieb Michael Jackson

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

2012-11-27 Thread Mateusz Loskot
On 27 November 2012 14:23, John Drescher wrote: > On Tue, Nov 27, 2012 at 7:21 AM, Michael Jackson > wrote: > > > > > > On Nov 27, 2012, at 12:46 AM, Titus von Boxberg wrote: > > > >> Am 27.11.2012 05:24, schrieb Michael Jackson: > >>> That will teach me to hit enter in GMail.. > >>> > >>> My q

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 wrote: > > > On Nov 27, 2012, at 12:46 AM, Titus von Boxberg 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 incantation to get Visual >>>

Re: [CMake] Building multiple Debian packages from one source

2012-11-27 Thread Patrick Nowak
Hi Eric, thanks, set(CPACK_DEB_COMPONENT_INSTALL 1) solved my problem. Best regards, Patrick Am 27.11.2012 14:17, schrieb Eric Noulard: 2012/11/27 Patrick Nowak : Hi, I am currently trying to build more then one Debian package from my sources. One package should contain the shared lib and th

Re: [CMake] Building multiple Debian packages from one source

2012-11-27 Thread Eric Noulard
2012/11/27 Patrick Nowak : > Hi, > > I am currently trying to build more then one Debian package from my sources. > One package should contain the shared lib and the binary and should simply > be called projectname-1.0.0.deb and the other one should contain the headers > and optionally a static lib

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

2012-11-27 Thread Michael Jackson
On Nov 27, 2012, at 12:46 AM, Titus von Boxberg 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 incantation to get Visual >> Studio 2010 to use more than a single processor when compiling my

[CMake] Building multiple Debian packages from one source

2012-11-27 Thread Patrick Nowak
Hi, I am currently trying to build more then one Debian package from my sources. One package should contain the shared lib and the binary and should simply be called projectname-1.0.0.deb and the other one should contain the headers and optionally a static lib and should be called projectname