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-e082-494a-bb16-2bfc039faa80or
http://stackoverflow.com/questions/10888391/link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-invalid-or-c

Petr

On Wed, Nov 28, 2012 at 4:12 AM, Andrew Maclean
wrote:

> 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 
>> Date: Tue, 27 Nov 2012 21:06:36 -0500
>> Subject: Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit
>> 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...
>>
>> It was not VS Express, but just VS 2010. I also had VS 2012 installed,
>> could that cause a problem? I uninstalled both and reinstalled 2010
>> and it works fine now.
>>
>> For future reference, what other information could I have provided?
>> The CMakeCache.txt file?
>>
>> David
>>
>>
>
> --
> ___
> Andrew J. P. Maclean
>
> ___
>
> --
>
> 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:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> 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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 
> Date: Tue, 27 Nov 2012 21:06:36 -0500
> Subject: Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit
> 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...
>
> It was not VS Express, but just VS 2010. I also had VS 2012 installed,
> could that cause a problem? I uninstalled both and reinstalled 2010
> and it works fine now.
>
> For future reference, what other information could I have provided?
> The CMakeCache.txt file?
>
> David
>
>

-- 
___
Andrew J. P. Maclean

___
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 directly and not from the command prompt.

I am able to build both VTK and the Wiki Examples Ok.
I do get problems when running the batch file in the above link but they
are related to the MS development environment not VTK. Certainly it seems
that building using the IDE seems to go faster.

Regards
   Andrew

-- Forwarded message --

> From: David Cole 
> To: David Doria 
> Cc: cmake Mailing List 
> Date: Tue, 27 Nov 2012 16:37:31 -0500
> Subject: Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit
> 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 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:
> >
> > ---
> > Error in configuration process, project files may be invalid
> >
> > The C compiler identification is MSVC 16.0.30319.1
> > The CXX compiler identification is MSVC 16.0.30319.1
> > Check for working C compiler using: Visual Studio 10 Win64
> > Check for working C compiler using: Visual Studio 10 Win64 -- broken
> > CMake Error at
> C:/bin/cmake/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61
> > (message):
> > The C compiler "D:/Program Files (x86)/Microsoft Visual Studio
> > 10.0/VC/bin/x86_amd64/cl.exe" is not able to compile a simple test
> program.
> > It fails with the following output:
> > Change Dir: c:/build/VTK/CMakeFiles/CMakeTmp
> > Run Build Command:d:\PROGRA~2\MICROS~1.0\Common7\IDE\devenv.com
> > CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec2926210968
> > Microsoft (R) Visual Studio Version 10.0.30319.1.
> > Copyright (C) Microsoft Corp. All rights reserved.
> > 1>-- Build started: Project: cmTryCompileExec2926210968,
> Configuration:
> > Debug x64 --
> > 1> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for
> x64
> > 1> Copyright (C) Microsoft Corporation. All rights reserved.
> > 1>
> > 1> cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D
> > "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
> > /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2926210968.dir\Debug\\"
> >
> /Fd"C:/build/VTK/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2926210968.pdb"
> > /Gd /TC /errorReport:prompt testCCompiler.c /Zm1000
> > 1>
> > 1> testCCompiler.c
> > 1>LINK : fatal error LNK1123: failure during conversion to COFF: file
> > invalid or corrupt
> > == Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> > ==
> > CMake will not be able to correctly generate this project.
> > Call Stack (most recent call first):
> > CMakeLists.txt:3 (project)
> > Configuring incomplete, errors occurred!
> >
> > ---
> >
> > I am using cmake-2.8.10.1. Any suggestions?
> >
> > David
> > --
> >
> > 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:
> http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
>
>
>
>
-- 
___
Andrew J. P. Maclean

___
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[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 XP (v110_xp).
Thanks,Kranar --

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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

It was not VS Express, but just VS 2010. I also had VS 2012 installed,
could that cause a problem? I uninstalled both and reinstalled 2010
and it works fine now.

For future reference, what other information could I have provided?
The CMakeCache.txt file?

David
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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/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 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 this.
>>  
>> Currently I have
>>  
>> ADD_DEFINITIONS(-Wno-unused-parameter …)
>>  
>> which works but it disables the warning for non-generated files as well.
>>  
>> I understand the right way to do this is by:
>>  
>> Set_source_files_property(filename PROPERTIES COMPILE_FLAGS 
>> “-Wno-unused-parameter  …”)
>>  
>> However I don’t have filename.  Instead I have myInputfile.i, which gets 
>> turns into something like myInputFilePYTHON_wrap.cxx.  Of course I can 
>> generate this name, but that seems fragile: if cmake desides to change the 
>> file mangling in the future I need to change my algorithm. 
>>  
>> So the question is either: is there are good way to get the generated 
>> filename, or is there a different way I should be doing this?
>>  
>>  
>> --
>> 
>> 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: 
>> http://www.cmake.org/Wiki/CMake_FAQ
>> 
>> 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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 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 this.
>  
> Currently I have
>  
> ADD_DEFINITIONS(-Wno-unused-parameter …)
>  
> which works but it disables the warning for non-generated files as well.
>  
> I understand the right way to do this is by:
>  
> Set_source_files_property(filename PROPERTIES COMPILE_FLAGS 
> “-Wno-unused-parameter  …”)
>  
> However I don’t have filename.  Instead I have myInputfile.i, which gets 
> turns into something like myInputFilePYTHON_wrap.cxx.  Of course I can 
> generate this name, but that seems fragile: if cmake desides to change the 
> file mangling in the future I need to change my algorithm. 
>  
> So the question is either: is there are good way to get the generated 
> filename, or is there a different way I should be doing this?
>  
>  
> --
> 
> 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: 
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> 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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[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 this.

Currently I have

ADD_DEFINITIONS(-Wno-unused-parameter ...)

 which works but it disables the warning for non-generated files as well.

I understand the right way to do this is by:

Set_source_files_property(filename PROPERTIES COMPILE_FLAGS 
"-Wno-unused-parameter  ...")

However I don't have filename.  Instead I have myInputfile.i, which gets turns 
into something like myInputFilePYTHON_wrap.cxx.  Of course I can generate this 
name, but that seems fragile: if cmake desides to change the file mangling in 
the future I need to change my algorithm.

So the question is either: is there are good way to get the generated filename, 
or is there a different way I should be doing this?


--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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
process that file from within your script. And using -D to indicate the
filename to the CMake script...


HTH,
David



On Tue, Nov 27, 2012 at 5:31 PM, James Bigler  wrote:

> 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/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> 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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 Ciccone
www.preta3d.com
www.paolociccone.com



On Tue, Nov 27, 2012 at 2:26 PM, Eric Noulard wrote:

> 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 programming editor you use) should have displayed
> those characters in a different way than "classical space", in fact this
> is how
> I got my eyes on it.
>
> --
> Erk
> Le gouvernement représentatif n'est pas la démocratie --
> http://www.le-message.org
>
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[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/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 programming editor you use) should have displayed
those characters in a different way than "classical space", in fact this is how
I got my eyes on it.

-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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 Noulard wrote:

> 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, which is stripped down to almost nothing
> here:
> >
> > https://dl.dropbox.com/u/3701566/cmake_cpack_test.zip
>
> If you open your CMakeLists.txt in an hexadecimal editor you'll see
> that you have spurious C2 A0 UTF-8 characters (unbreakable space) at the
> end of
> the following variables:
> CPACK_PACKAGE_VENDOR
> CPACK_PACKAGE_VERSION_MAJOR
> CPACK_PACKAGE_VERSION_MINOR
> CPACK_PACKAGE_VERSION_PATCH
> CPACK_PACKAGE_DESCRIPTION_SUMMARY
> CPACK_RESOURCE_FILE_WELCOME
> CPACK_RESOURCE_FILE_README
> CPACK_RESOURCE_FILE_LICENSE
>
> so statement  like
>
> set(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_SOURCE_DIR}/intro.rtf")
>
> may be puzzling CMake because the extraneous "unbreakable space" may not be
> considered as a separator.
>
> On linux it seems to work but the behavior on the Mac may be different.
> Could you try replacing your CMakeLists.txt with the one attached to this
> mail
> and retry.
>
>
> --
> Erk
> Le gouvernement représentatif n'est pas la démocratie --
> http://www.le-message.org
>
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[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:
http://public.kitware.com/Bug/changelog_page.php?version_id=107

Please use the latest release installers from our download page
http://cmake.org/cmake/resources/software.html rather than any previous
2.8.10 builds.

Thanks for your continued support!



-Dave





These are the commits that fixed the problems:

Changes in CMake 2.8.10.2 (since 2.8.10.1)
--
Alex Neundorf (1):
  Automoc: fix regression #13667, broken build in phonon

Brad King (1):
  Initialize IMPORTED GLOBAL targets on reconfigure (#13702)

David Cole (1):
  CMake: Fix infinite loop untarring corrupt tar file

Rolf Eike Beer (1):
  FindGettext: fix overwriting result with empty variable (#13691)
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 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:
>
> ---
> Error in configuration process, project files may be invalid
>
> The C compiler identification is MSVC 16.0.30319.1
> The CXX compiler identification is MSVC 16.0.30319.1
> Check for working C compiler using: Visual Studio 10 Win64
> Check for working C compiler using: Visual Studio 10 Win64 -- broken
> CMake Error at 
> C:/bin/cmake/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61
> (message):
> The C compiler "D:/Program Files (x86)/Microsoft Visual Studio
> 10.0/VC/bin/x86_amd64/cl.exe" is not able to compile a simple test program.
> It fails with the following output:
> Change Dir: c:/build/VTK/CMakeFiles/CMakeTmp
> Run Build Command:d:\PROGRA~2\MICROS~1.0\Common7\IDE\devenv.com
> CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec2926210968
> Microsoft (R) Visual Studio Version 10.0.30319.1.
> Copyright (C) Microsoft Corp. All rights reserved.
> 1>-- Build started: Project: cmTryCompileExec2926210968, Configuration:
> Debug x64 --
> 1> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64
> 1> Copyright (C) Microsoft Corporation. All rights reserved.
> 1>
> 1> cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2926210968.dir\Debug\\"
> /Fd"C:/build/VTK/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2926210968.pdb"
> /Gd /TC /errorReport:prompt testCCompiler.c /Zm1000
> 1>
> 1> testCCompiler.c
> 1>LINK : fatal error LNK1123: failure during conversion to COFF: file
> invalid or corrupt
> == Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> ==
> CMake will not be able to correctly generate this project.
> Call Stack (most recent call first):
> CMakeLists.txt:3 (project)
> Configuring incomplete, errors occurred!
>
> ---
>
> I am using cmake-2.8.10.1. Any suggestions?
>
> David
> --
>
> 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: 
> http://www.cmake.org/Wiki/CMake_FAQ
>
> 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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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, which is stripped down to almost nothing here:
>
> https://dl.dropbox.com/u/3701566/cmake_cpack_test.zip

If you open your CMakeLists.txt in an hexadecimal editor you'll see
that you have spurious C2 A0 UTF-8 characters (unbreakable space) at the end of
the following variables:
CPACK_PACKAGE_VENDOR
CPACK_PACKAGE_VERSION_MAJOR
CPACK_PACKAGE_VERSION_MINOR
CPACK_PACKAGE_VERSION_PATCH
CPACK_PACKAGE_DESCRIPTION_SUMMARY
CPACK_RESOURCE_FILE_WELCOME
CPACK_RESOURCE_FILE_README
CPACK_RESOURCE_FILE_LICENSE

so statement  like

set(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_SOURCE_DIR}/intro.rtf")

may be puzzling CMake because the extraneous "unbreakable space" may not be
considered as a separator.

On linux it seems to work but the behavior on the Mac may be different.
Could you try replacing your CMakeLists.txt with the one attached to this mail
and retry.


-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
#
# MyApp 
#

cmake_minimum_required(VERSION 2.8)
# see http://www.cmake.org/cmake/help/cmake-2-8-docs.html#policy:CMP0012
if(POLICY CMP0012)
  cmake_policy(SET CMP0012 OLD)
endif()
# see http://www.cmake.org/cmake/help/cmake-2-8-docs.html#policy:CMP0015
if(POLICY CMP0015)
  cmake_policy(SET CMP0015 OLD)
endif()


# Set the project name 
PROJECT("My Project")

#
# OS abbreviation
#
IF(APPLE) 
  SET(OS_CODE "M")
ELSEIF(WIN32)
  SET(OS_CODE "W")
ENDIF()

SET(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "limit configs" 
FORCE)

#
# Version number
#
SET(MY_VERSION_MAJOR "3")
SET(MY_VERSION_MINOR "0")
SET(MY_VERSION_PATCH "0")

SET(MY_VERSION "${MY_VERSION_MAJOR}.${MY_VERSION_MINOR}.${MY_VERSION_PATCH}")

  

#
# Targets
#
ADD_CUSTOM_TARGET(REBUILD_UI COMMAND echo "Rebuilding the UI files...")


#
# Installer
#

INCLUDE(InstallRequiredSystemLibraries)

SET(CPACK_PACKAGE_NAME "MyApp ${MY_VERSION_MAJOR} ${HOST_NAME}")
SET(CPACK_PACKAGE_VENDOR "Pret-a-3D")

SET(CPACK_PACKAGE_VERSION "3.0.0")
SET(CPACK_PACKAGE_VERSION_MAJOR "3")
SET(CPACK_PACKAGE_VERSION_MINOR "0")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
SET(CPACK_PACKAGE_FILE_NAME "MyApp_${MY_VERSION_MAJOR}_${HOST_NAME}")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "MyApp 3 for ${HOST_NAME}")
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY 
"MyApp ${MY_VERSION_MAJOR}.${MY_VERSION_MINOR}")

SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/intro.rtf")

IF(APPLE)
  SET(CPACK_GENERATOR "PackageMaker")
ELSEIF(WIN32)
  SET(CPACK_GENERATOR "NSIS")  
ENDIF()

SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "MyApp ${MY_VERSION_MAJOR}")

IF(APPLE)
  SET(CMAKE_INSTALL_PREFIX "/Applications")
  SET(CPACK_PACKAGE_INSTALL_DIRECTORY "/Applications")  
ENDIF()


SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/welcome.txt")
SET(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_SOURCE_DIR}/intro.rtf")
SET(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/welcome.txt")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/license.txt")

INCLUDE(CPack)

--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 CMakeFiles/dirac.x.dir/link.txt:
/home/ilias/intel/composer_xe_2011_sp1.9.293/bin/intel64/ifort-static 
-Wl,-E  -w -assume byterecl -DVAR_IFORT -g -traceback -static-libgcc 
-static-intel -i8 -O3 -ip CMakeFiles/dirac.x.dir/src/main/main.F90.o  -o 
dirac.x -i_dynamic lib/libdirac.a lib/libxcfun.a -lstdc++ -Wl,--start-group 
/home/ilias/intel/mkl/lib/intel64/libmkl_lapack95_ilp64.a -Wl,--end-group 
-Wl,--start-group -limf /home/ilias/intel/mkl/lib/intel64/libmkl_core.a 
/home/ilias/intel/mkl/lib/intel64/libmkl_intel_thread.a /usr/lib64/libpthread.a 
/usr/lib64/libm.a /home/ilias/intel/mkl/lib/intel64/libmkl_intel_ilp64.a 
-openmp -Wl,--end-group 

while on the other machine I found wrong assignement of the dynamic-only 
(http://software.intel.com/en-us/forums/topic/265644) library libcilkrts :

content of CMakeFiles/dirac.x.dir/link.txt:
/home/ilias/intel/composer_xe_2011_sp1.9.293/bin/intel64/ifort -static 
-Wl,-E  -w -assume byterecl -DVAR_IFORT -g -traceback -static-libgcc 
-static-intel -i8 -O0 CMakeFiles/dirac.x.dir/src/main/main.F90.o  -o dirac.x 
-i_dynamic lib/libdirac.a lib/libxcfun.a -lstdc++ -Wl,--start-group 
/home/ilias/intel/mkl/lib/intel64/libmkl_lapack95_ilp64.a -Wl,--end-group 
-Wl,--start-group -limf /home/ilias/intel/mkl/lib/intel64/libmkl_core.a 
/home/ilias/intel/mkl/lib/intel64/libmkl_intel_thread.a /usr/lib64/libpthread.a 
/usr/lib64/libm.a /home/ilias/intel/mkl/lib/intel64/libmkl_intel_ilp64.a 
-openmp -Wl,--end-group -Wl,--no-export-dynamic -ldecimal -lcilkrts -lstdc++ 
-lirc -ldecimal -lcilkrts -lstdc++ -lirc


By comparing "CMakeFiles/CMakeOutput.log" files I found several differences, 
for instance, the 'proper' one starts

The system is: Linux - 2.6.18-308.13.1.el5 - x86_64
Compiling the Fortran compiler identification source file 
"CMakeFortranCompilerId.F90" succeeded.
Compiler: /home/ilias/intel/composer_xe_2011_sp1.9.293/bin/intel64/ifort 

see https://docs.google.com/open?id=0B8qBHKNhZAipOWV2ZW5FZ3duRTg


while the bad one, the "cilkrts-spoiled" contains:

The system is: Linux - 2.6.32-279.14.1.el6.x86_64 - x86_64
Compiling the Fortran compiler identification source file 
"CMakeFortranCompilerId.F" succeeded.
Compiler: /home/ilias/intel/composer_xe_2011_sp1.9.293/bin/intel64/ifort 

see https://docs.google.com/open?id=0B8qBHKNhZAipbllmM09ianI0NDg

Any help, please ? I would be very glad to have possibility to modify 
CMAKE__IMPLICIT_LINK_LIBRARIES 

Best, Miro


From: cmake-boun...@cmake.org [cmake-boun...@cmake.org]
Sent: Sunday, November 13, 2011 5:33 PM
To: Ilias Miroslav
Subject: Your message to CMake awaits moderator approval

Your mail to 'CMake' with the subject

RE: ifort,icc,icpc: ld: cannot find -lcilkrts

Is being held until the list moderator can review it for approval.

The reason it is being held:

Message body is too big: 68048 bytes with a limit of 40 KB

Either the message will get posted to the list, or you will receive
notification of the moderator's decision.  If you would like to cancel
this posting, please visit the following URL:


http://www.cmake.org/mailman/confirm/cmake/8c1ef1ce750a4ee13546dd3e8d4c770f618d3b8b
 
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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

---
Error in configuration process, project files may be invalid

The C compiler identification is MSVC 16.0.30319.1
The CXX compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10 Win64
Check for working C compiler using: Visual Studio 10 Win64 -- broken
CMake Error at C:/bin/cmake/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61
(message):
The C compiler "D:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/x86_amd64/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: c:/build/VTK/CMakeFiles/CMakeTmp
Run Build Command:d:\PROGRA~2\MICROS~1.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec2926210968
Microsoft (R) Visual Studio Version 10.0.30319.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>-- Build started: Project: cmTryCompileExec2926210968, Configuration:
Debug x64 --
1> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D
"CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
/Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2926210968.dir\Debug\\"
/Fd"C:/build/VTK/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2926210968.pdb"
/Gd /TC /errorReport:prompt testCCompiler.c /Zm1000
1>
1> testCCompiler.c
1>LINK : fatal error LNK1123: failure during conversion to COFF: file
invalid or corrupt
== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
Configuring incomplete, errors occurred!

---

I am using cmake-2.8.10.1. Any suggestions?

David
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[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 ${string})

That will make the space separated list string into a ; separated list.  If
you want to keep string a string you need quotes:
set(newstring "${string}").

It doesn't seem to work that way though, so perhaps I'm missing something.

Here's my test program:

function(print_list name)
  list(LENGTH ${name} length_of_list)
  message("${name} has ${length_of_list} items")
  set(count 0)
  foreach(i ${${name}})
message("${name}[${count}] = ${i}")
math(EXPR count "${count} + 1")
  endforeach()
endfunction()

set(mylist a b c)
set(mystring "a b c")
set(mylist_from_string ${mystring})

print_list(mylist)
print_list(mystring)
print_list(mylist_from_string)

And here's what I get when I run it:

cmake -P list-from-string.cmake

mylist has 3 items
mylist[0] = a
mylist[1] = b
mylist[2] = c
mystring has 1 items
mystring[0] = a b c
mylist_from_string has 1 items
mylist_from_string[0] = a b c
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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:

https://dl.dropbox.com/u/3701566/cmake_cpack_test.zip

Hope this helps.

---
Paolo Ciccone
www.preta3d.com
www.paolociccone.com



On Tue, Nov 27, 2012 at 9:41 AM, Eric Noulard wrote:

> 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 issue.
>
> You should definitely find the CPACK_xxx values you(ve set
> in your CMakeLists.txt inside CPackConfig.cmake.
>
> Could you send me/us  a sample minimalistic project
> which exhibit the faulty behavior?
>
> Which version of CMake/CPack are you using?
> Could you transcript the exact command you launch when
> configuring and packaging your project?
>
>
> [...]
>
> --
> Erk
> Le gouvernement représentatif n'est pas la démocratie --
> http://www.le-message.org
>
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 issue.

You should definitely find the CPACK_xxx values you(ve set
in your CMakeLists.txt inside CPackConfig.cmake.

Could you send me/us  a sample minimalistic project
which exhibit the faulty behavior?

Which version of CMake/CPack are you using?
Could you transcript the exact command you launch when
configuring and packaging your project?


[...]

-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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_system_to_use_Ninja

As I stated earlier, the version I use I get from my company tools site where 
someone else has done the grunt work to get ninja to work under windows. Once 
working though, you use the following when you invoke CMake:

cmake -G "Ninja" …

Gary Little
gglit...@comcast.net
C 952-454-4629
H 952-223-1349
Tain't what you want that makes you fat, it's what you get.



On Nov 27, 2012, at 10:05 AM, Vyacheslav Karamov  wrote:

> 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 the tastest build that I have available for Windows.
>> 
>> Gary Little
>> gglit...@comcast.net
>> C 952-454-4629
>> H 952-223-1349
>> Tain't what you want that makes you fat, it's what you get.
>> 
>> 
>> 
>> On Nov 26, 2012, at 10:24 PM, Michael Jackson  
>> wrote:
>> 
>>> 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
>>> project?
>>> 
>>> Thanks
>>> -
>>> Mike Jackson
>>> _
>>> Mike Jackson  mike.jack...@bluequartz.net
>>> BlueQuartz Softwarewww.bluequartz.net
>>> Principal Software Engineer  Dayton, Ohio
>>> 
>>> 
>>> On Mon, Nov 26, 2012 at 11:22 PM, Michael Jackson
>>>  wrote:
 _
 Mike Jackson  mike.jack...@bluequartz.net
 BlueQuartz Softwarewww.bluequartz.net
 Principal Software Engineer  Dayton, Ohio
>>> --
>>> 
>>> 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: 
>>> http://www.cmake.org/Wiki/CMake_FAQ
>>> 
>>> 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 check the CMake FAQ at: 
>> http://www.cmake.org/Wiki/CMake_FAQ
>> 
>> 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 check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> 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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 952-223-1349
Tain't what you want that makes you fat, it's what you get.



On Nov 27, 2012, at 10:05 AM, Vyacheslav Karamov  wrote:

> 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 the tastest build that I have available for Windows.
>> 
>> Gary Little
>> gglit...@comcast.net
>> C 952-454-4629
>> H 952-223-1349
>> Tain't what you want that makes you fat, it's what you get.
>> 
>> 
>> 
>> On Nov 26, 2012, at 10:24 PM, Michael Jackson  
>> wrote:
>> 
>>> 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
>>> project?
>>> 
>>> Thanks
>>> -
>>> Mike Jackson
>>> _
>>> Mike Jackson  mike.jack...@bluequartz.net
>>> BlueQuartz Softwarewww.bluequartz.net
>>> Principal Software Engineer  Dayton, Ohio
>>> 
>>> 
>>> On Mon, Nov 26, 2012 at 11:22 PM, Michael Jackson
>>>  wrote:
 _
 Mike Jackson  mike.jack...@bluequartz.net
 BlueQuartz Softwarewww.bluequartz.net
 Principal Software Engineer  Dayton, Ohio
>>> --
>>> 
>>> 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: 
>>> http://www.cmake.org/Wiki/CMake_FAQ
>>> 
>>> 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 check the CMake FAQ at: 
>> http://www.cmake.org/Wiki/CMake_FAQ
>> 
>> 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 check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> 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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 the tastest 
build that I have available for Windows.

Gary Little
gglit...@comcast.net
C 952-454-4629
H 952-223-1349
Tain't what you want that makes you fat, it's what you get.



On Nov 26, 2012, at 10:24 PM, Michael Jackson  
wrote:


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
project?

Thanks
-
Mike Jackson
_
Mike Jackson  mike.jack...@bluequartz.net
BlueQuartz Softwarewww.bluequartz.net
Principal Software Engineer  Dayton, Ohio


On Mon, Nov 26, 2012 at 11:22 PM, Michael Jackson
 wrote:

_
Mike Jackson  mike.jack...@bluequartz.net
BlueQuartz Softwarewww.bluequartz.net
Principal Software Engineer  Dayton, Ohio

--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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, 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
> gglit...@comcast.net
> C 952-454-4629
> H 952-223-1349
> Tain't what you want that makes you fat, it's what you get.
>
>
>
> On Nov 26, 2012, at 10:24 PM, Michael Jackson  
> wrote:
>
>> 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
>> project?
>>
>> Thanks
>> -
>> Mike Jackson
>> _
>> Mike Jackson  mike.jack...@bluequartz.net
>> BlueQuartz Softwarewww.bluequartz.net
>> Principal Software Engineer  Dayton, Ohio
>>
>>
>> On Mon, Nov 26, 2012 at 11:22 PM, Michael Jackson
>>  wrote:
>>> _
>>> Mike Jackson  mike.jack...@bluequartz.net
>>> BlueQuartz Softwarewww.bluequartz.net
>>> Principal Software Engineer  Dayton, Ohio
>> --
>>
>> 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: 
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> 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 check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
>
> 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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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
gglit...@comcast.net
C 952-454-4629
H 952-223-1349
Tain't what you want that makes you fat, it's what you get.



On Nov 26, 2012, at 10:24 PM, Michael Jackson  
wrote:

> 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
> project?
> 
> Thanks
> -
> Mike Jackson
> _
> Mike Jackson  mike.jack...@bluequartz.net
> BlueQuartz Softwarewww.bluequartz.net
> Principal Software Engineer  Dayton, Ohio
> 
> 
> On Mon, Nov 26, 2012 at 11:22 PM, Michael Jackson
>  wrote:
>> _
>> Mike Jackson  mike.jack...@bluequartz.net
>> BlueQuartz Softwarewww.bluequartz.net
>> Principal Software Engineer  Dayton, Ohio
> --
> 
> 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: 
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> 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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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 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 Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/**CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake
>



-- 
+1 919 869 8849
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[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 Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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 actually do it in your main CMakeLists.txt?
>
>
Nope, there is only one CMakeLists.txt file and the CPack text is at the
end of it.


> Which CPack generator are you using?
>

PackageMaker


> Not all of them use CPACK_RESOURCE_* vars.
>
> Could you try from a "fresh" build tree in order to avoid potential
> cache effect.
>

I have deleted the cache and the gemerated CPack files several times
without effect.
BTW, also the CPACK_PACKAGE_VERSION_MAJOR, CPACK_PACKAGE_VERSION_MINOR,
and CPACK_PACKAGE_VERSION_PATCH variables are skipped and those should not
be generator-dependent.

Cheers.

--
Paolo
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 inter-project dependencies do not tend to make good
use of the cores.

On top of that it appears that VS building slows down significantly as
the # of include folders greatly increases. This cuts into CPU
utilization when the OS searches your includes for your header files.
In the past I have tried to get around the inter-project dependency
problem by building Release, Debug and RelWithDebInfo in 3 separate
processes only to find that on some builds this did not fix the issue
because the OS spent an a large portion of the build time searching
the include paths. I even tried to stop this by placing the projects
and includes on a RAM disk but even that did not totally fix the
issue.

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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 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
> >> >>> project?
> >> >> You could add /MP to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS
> >> >>
> >> >> Regards
> >> >> Titus
> >> >> --
> >> >>
> >> >
> >> >
> >> > Thanks for the tip. I'll give it a try.
> >>
> >> I can tell you that sometimes its hard to get Visual Studio to make
> >> good use of your cores (especially if you have 8 or 12 threads) even
> >> though multithreded building is on. I believe there are too many parts
> >> of the chain that are single threaded only.
> >
> >
> > It's fairly easy to make both, VS and cl.exe, utilise multiple cores,
> > even using command line. The problem is that build configurations like
> > NMAKE require significant gymnastics:
> >
> > http://public.kitware.com/pipermail/cmake/2012-September/052116.html
> >
> > It is easier with VS projects:
> >
> > http://www.cmake.org/pipermail/cmake/2009-April/028669.html
>
> My comment was even though it will do multithreaded builds with VS
> projects for some projects it will build at very low CPU utilization
> for long periods while other projects it maxes out at 100% on all 12
> cores.


Right, perhaps complex inter-project dependencies halt the processes.



-- 
Mateusz Loskot, http://mateusz.loskot.net
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/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  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:
>> >>> 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
>> >>> project?
>> >> You could add /MP to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS
>> >>
>> >> Regards
>> >> Titus
>> >> --
>> >>
>> >
>> >
>> > Thanks for the tip. I'll give it a try.
>>
>> I can tell you that sometimes its hard to get Visual Studio to make
>> good use of your cores (especially if you have 8 or 12 threads) even
>> though multithreded building is on. I believe there are too many parts
>> of the chain that are single threaded only.
>
>
> It's fairly easy to make both, VS and cl.exe, utilise multiple cores,
> even using command line. The problem is that build configurations like
> NMAKE require significant gymnastics:
>
> http://public.kitware.com/pipermail/cmake/2012-September/052116.html
>
> It is easier with VS projects:
>
> http://www.cmake.org/pipermail/cmake/2009-April/028669.html

My comment was even though it will do multithreaded builds with VS
projects for some projects it will build at very low CPU utilization
for long periods while other projects it maxes out at 100% on all 12
cores.

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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 question is this: What is the magic CMake incantation to get Visual
> >>> Studio 2010 to use more than a single processor when compiling my
> >>> project?
> >> You could add /MP to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS
> >>
> >> Regards
> >> Titus
> >> --
> >>
> >
> >
> > Thanks for the tip. I'll give it a try.
>
> I can tell you that sometimes its hard to get Visual Studio to make
> good use of your cores (especially if you have 8 or 12 threads) even
> though multithreded building is on. I believe there are too many parts
> of the chain that are single threaded only.


It's fairly easy to make both, VS and cl.exe, utilise multiple cores,
even using command line. The problem is that build configurations like
NMAKE require significant gymnastics:

http://public.kitware.com/pipermail/cmake/2012-September/052116.html

It is easier with VS projects:

http://www.cmake.org/pipermail/cmake/2009-April/028669.html

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/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 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
>>> Studio 2010 to use more than a single processor when compiling my
>>> project?
>> You could add /MP to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS
>>
>> Regards
>> Titus
>> --
>>
>
>
> Thanks for the tip. I'll give it a try.

I can tell you that sometimes its hard to get Visual Studio to make
good use of your cores (especially if you have 8 or 12 threads) even
though multithreded building is on. I believe there are too many parts
of the chain that are single threaded only.

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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 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-1.0.0-dev.deb.

I found this post (
http://cmake.3232098.n2.nabble.com/Multiple-Package-Generators-and-add-package-command-td6067405.html),
possibly describing what to do but it doesn't seem to work for me. I still
only get one package containing the same stuff it contained before adding
the COMPONENT statement to my INSTALLs and adding cpack_add_component.

You should enable component packaging for the DEB generator:
set(CPACK_DEB_COMPONENT_INSTALL 1)

see:
cpack --help-variable "CPACK__COMPONENT_INSTALL"

for backward compatibility reason some CPack generators (including DEB)
default to "monolithic installer"
http://www.vtk.org/Wiki/CMake:Component_Install_With_CPack#Enabling_Component_Packaging


Is this approach described in this post the right approach at all for my
desired goal?

Yes it should work, read the Wiki as well in order to get the big picture.
There is one limitation you won't able to overcome for now is the naming scheme
makes it impossible to have a component package named: "projectname-1.0.0.deb"
you will always get "projectname-1.0.0-.deb"

see this bug/features request:
http://public.kitware.com/Bug/view.php?id=12997

and the related ones.


Are cpack_add_component_group and cpack_add_install_type mandatory? How do I
set the file name for every component respectively package?

Nope.


If not: Is this even possible with CMake without having to CMakeLists.txt
files and changing them for every desired package?

I don't understand this?



--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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 and should be called projectname-1.0.0-dev.deb.
>
> I found this post (
> http://cmake.3232098.n2.nabble.com/Multiple-Package-Generators-and-add-package-command-td6067405.html),
> possibly describing what to do but it doesn't seem to work for me. I still
> only get one package containing the same stuff it contained before adding
> the COMPONENT statement to my INSTALLs and adding cpack_add_component.

You should enable component packaging for the DEB generator:
set(CPACK_DEB_COMPONENT_INSTALL 1)

see:
cpack --help-variable "CPACK__COMPONENT_INSTALL"

for backward compatibility reason some CPack generators (including DEB)
default to "monolithic installer"
http://www.vtk.org/Wiki/CMake:Component_Install_With_CPack#Enabling_Component_Packaging

> Is this approach described in this post the right approach at all for my
> desired goal?

Yes it should work, read the Wiki as well in order to get the big picture.
There is one limitation you won't able to overcome for now is the naming scheme
makes it impossible to have a component package named: "projectname-1.0.0.deb"
you will always get "projectname-1.0.0-.deb"

see this bug/features request:
http://public.kitware.com/Bug/view.php?id=12997

and the related ones.

> Are cpack_add_component_group and cpack_add_install_type mandatory? How do I
> set the file name for every component respectively package?

Nope.

> If not: Is this even possible with CMake without having to CMakeLists.txt
> files and changing them for every desired package?

I don't understand this?

-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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
>> project?
> You could add /MP to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS
> 
> Regards
> Titus
> --
> 


Thanks for the tip. I'll give it a try.
___
Mike JacksonPrincipal Software Engineer
BlueQuartz SoftwareDayton, Ohio
mike.jack...@bluequartz.net  www.bluequartz.net

--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[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-1.0.0-dev.deb.


I found this post ( 
http://cmake.3232098.n2.nabble.com/Multiple-Package-Generators-and-add-package-command-td6067405.html), 
possibly describing what to do but it doesn't seem to work for me. I 
still only get one package containing the same stuff it contained before 
adding the COMPONENT statement to my INSTALLs and adding 
cpack_add_component. Is this approach described in this post the right 
approach at all for my desired goal? If so:


Are cpack_add_component_group and cpack_add_install_type mandatory? How 
do I set the file name for every component respectively package?


If not: Is this even possible with CMake without having to 
CMakeLists.txt files and changing them for every desired package?


Best regards,
Patrick
--

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: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake