Re: [CMake] CTest parallel builds, serial tests

2012-10-02 Thread Nils Gladitz
I use CTest scripts for the build (ctest -S) which set CTEST_BUILD_COMMAND. Alternatively I think setting CTEST_BUILD_FLAGS to add flags to the build command instead of replacing it should work as well. Subsequent calls to "ctest_build()" in the script pick up and use the command as set earlie

[CMake] CTest parallel builds, serial tests

2012-10-02 Thread Matt.Bolger
We have a simple automated test/build setup. A basic CTestConfig.cmake sets the project name and CTEST_DROP properties and the test server simply runs "ctest -D Nightly" or "ctest -D Experimental" to process a build. I have two problems that I think I could solve if I can work out how to specify

[CMake] "CMake and Friends" course at Kitware

2012-10-02 Thread Bill Hoffman
Hi all, Next Wednesday, October 10, is the early registration deadline for the November 7th "CMake and Friends" course. The one day, on-site course on November 7th introduces how you can use the open-source software process tools employed by VTK, ITK, ParaView, and many other projects in order

Re: [CMake] CMake 2.8.10-rc1 ready for testing!

2012-10-02 Thread Robert Dailey
Could we get a list of all the new generator expressions? Is there 2.8.10 documentation online somewhere that might have them documented? On Tue, Oct 2, 2012 at 1:51 PM, David Cole wrote: > Time for the fall harvest edition of CMake... > > I am happy to announce that CMake 2.8.10 has entered the

[CMake] CMake 2.8.10-rc1 ready for testing!

2012-10-02 Thread David Cole
Time for the fall harvest edition of CMake... I am happy to announce that CMake 2.8.10 has entered the release candidate stage! You can find the source and binaries here: http://www.cmake.org/files/v2.8/?C=M;O=D This email is also available as blog posts: http://www.kitware.com/blog/home/p

Re: [CMake] CMake passes compiler flags to linker

2012-10-02 Thread Sean McBride
On Tue, 2 Oct 2012 22:35:31 +0530, Arindam Mukherjee said: >I have used CMAKE_CXX_FLAGS and CMAKE_EXE_LINKER_FLAGS variables to >pass custom options to the C++ compiler and linker. However, cmake >seems to be passing the flags meant only for the compiler to the >linker too. That's a pet peeve of

Re: [CMake] Specifying libraries with a variable

2012-10-02 Thread John Drescher
On Tue, Oct 2, 2012 at 9:11 AM, Arindam Mukherjee 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 > tried defining a cust

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

2012-10-02 Thread Xavier Besseron
On Tue, Oct 2, 2012 at 1:09 PM, Arindam Mukherjee wrote: > On Tue, Oct 2, 2012 at 4:22 PM, David Cole wrote: >> >> >> cmake -G "Visual Studio 9 2008 Win32" src_dir >> >> will not work. There is no such generator. Leave out the " Win32" for this >> case... it is implied. >> >> > > How would it be

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

2012-10-02 Thread Arindam Mukherjee
On Tue, Oct 2, 2012 at 4:22 PM, David Cole wrote: > On Tue, Oct 2, 2012 at 5:30 AM, Arindam Mukherjee > wrote: >> >> On Tue, Oct 2, 2012 at 2:48 AM, Xavier Besseron >> wrote: >> > Hi, >> > >> > I was able to build win64 executable on my 32-bit Windows. >> > >> > First, I had to make the "full in

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

2012-10-02 Thread David Cole
On Tue, Oct 2, 2012 at 5:30 AM, Arindam Mukherjee < arindam.muker...@gmail.com> wrote: > On Tue, Oct 2, 2012 at 2:48 AM, Xavier Besseron > wrote: > > Hi, > > > > I was able to build win64 executable on my 32-bit Windows. > > > > First, I had to make the "full installation" of VS 2008 (the "defaul

Re: [CMake] CTEST_CONFIGURATION_TYPE not set in 'make test'

2012-10-02 Thread David Cole
CMake has code like this using the TEST_INCLUDE_FILE directory property to deal with this situation: # In the main CMakeLists.txt: # Set up test-time configuration. set_directory_properties(PROPERTIES TEST_INCLUDE_FILE "${CMake_BINARY_DIR}/Tests/EnforceConfig.cmake") # In Tests/CMakeLists.txt

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

2012-10-02 Thread Arindam Mukherjee
On Tue, Oct 2, 2012 at 2:48 AM, Xavier Besseron wrote: > Hi, > > I was able to build win64 executable on my 32-bit Windows. > > First, I had to make the "full installation" of VS 2008 (the "default > installation" did not provide the win64 compiler in my case). Then, I > had to select the "Visual