Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-10-26 Thread David Cole
Reminder: Please make your requests for bug fixes for CMake 2.8.7 by the end of the day, this Friday, October 28. It will be nice to have as complete a picture as possible so we can plan the next 6 weeks effectively. Thanks, David On Fri, Oct 21, 2011 at 2:20 PM, David Cole wrote: > As an est

Re: [CMake] cdt4 generator and adding new source files from inside eclipse

2011-10-26 Thread Robert Dailey
On Wed, Oct 26, 2011 at 4:42 PM, Dan Kegel wrote: > I'm going over the checklist of whether cmake will meet > the needs of my eclipse users, and their first question > was what was the workflow for adding a new source > file. > > I just tried the experiment of adding a .cpp file, > adding it to C

[CMake] cdt4 generator and adding new source files from inside eclipse

2011-10-26 Thread Dan Kegel
I'm going over the checklist of whether cmake will meet the needs of my eclipse users, and their first question was what was the workflow for adding a new source file. I just tried the experiment of adding a .cpp file, adding it to CMakeLists.txt, and clicking Build... and the .o file showed up as

[CMake] ExternalProject dependency question

2011-10-26 Thread Dan Kegel
The manual says "If you need to make your own CMake target depend on an external project use the CMake ADD_DEPENDENCIES command. The target name will be the first argument and the external project will be the second argument." But it seems kind of lame; it leaves external projects as second-clas

Re: [CMake] Integrating cmake into eclipse: running test cases from gui?

2011-10-26 Thread Dan Kegel
On Wed, Oct 26, 2011 at 7:09 PM, Alexander Neundorf wrote: >> What if I want to run all tests? > > Double click the "test" target in the top level directory of the "Makefile > targets" view. Ah, handy, thanks. > What does not exist, but what might be nice, is something which provides the > flexi

Re: [CMake] adding include directories to main target

2011-10-26 Thread Ɓukasz Tasz
Hi, in C,CMakelists.txt set variable which store include_dir but add PARENT_SCOPE, and then use this variable in A,CMakeLists.txt to set includes: CCMakeLists.txt: set(includesFromC "dir_name" PARENT_SCOPE) ACMakeLists.txt: add_subdirectory(C) include_directories(${includesFromC}) Another op

Re: [CMake] CMake still broken post-2.8.1

2011-10-26 Thread Phil Smith
Thanks, Bill; I will try that and report back. -Original Message- From: Bill Hoffman [mailto:bill.hoff...@kitware.com] Sent: Wednesday, October 26, 2011 12:43 PM To: Phil Smith Cc: a.neundorf-w...@gmx.net; cmake@cmake.org; David Cole; Janet Graff; Brad King Subject: Re: [CMake] CMake stil

Re: [CMake] Integrating cmake into eclipse: running test cases from gui?

2011-10-26 Thread Alexander Neundorf
On Wednesday 26 October 2011, Dan Kegel wrote: > On Wed, Oct 26, 2011 at 6:18 PM, Alexander Neundorf > > wrote: > > It would be nice if you could give cmake from current git master a try. I > > have put some more work into it, and now you should get also a virtual > > folder containing all target

[CMake] adding include directories to main target

2011-10-26 Thread j
Hi there, I'm trying to set the include directories that a library in my project uses into my main target. the hierarchy is as follows: CMakeLists.txt (A) +application CMakeLists.txt (B) +library CMakeLists.txt (C) B is called by A through add_subdirectory and B does a LINK_LIBRARIES for '

Re: [CMake] Integrating cmake into eclipse: running test cases from gui?

2011-10-26 Thread Dan Kegel
On Wed, Oct 26, 2011 at 6:18 PM, Alexander Neundorf wrote: > It would be nice if you could give cmake from current git master a try. I have > put some more work into it, and now you should get also a virtual folder > containing all targets (each with a Build and a Clean target) and their > associa

Re: [CMake] Integrating cmake into eclipse: running test cases from gui?

2011-10-26 Thread Alexander Neundorf
On Wednesday 26 October 2011, Dan Kegel wrote: > Hey folks, > I'm happily using the cdt4 generator to generate eclipse > projects. The result doesn't seem very eclipse-y to my untrained > eye, but it's close enough to get work done. It would be nice if you could give cmake from current git maste

Re: [CMake] Boost external project doesn't build with VS2010 generator

2011-10-26 Thread Ben Medina
I tend to use the online documentation: http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:ExternalProject But I agree that an example would also be useful. Perhaps the wiki could have examples of how to use external project with common 3rd party libs (e.g. boost, Qt). On Wed, Oct 26, 201

[CMake] Integrating cmake into eclipse: running test cases from gui?

2011-10-26 Thread Dan Kegel
Hey folks, I'm happily using the cdt4 generator to generate eclipse projects. The result doesn't seem very eclipse-y to my untrained eye, but it's close enough to get work done. Next question: how does one trigger "make test" from eclipse? In the java world, I think a plugin is used to do that.

Re: [CMake] CMake still broken post-2.8.1

2011-10-26 Thread Bill Hoffman
So, since this is a cross compile situation, there is really no need to run the compiler id code. You should be able to put the following into your toolchain file and avoid the compiler id check code altogether: SET(CMAKE_C_COMPILER_ID_RUN 1) SET(CMAKE_C_PLATFORM_ID "MyPlatform") SET(CM

Re: [CMake] Boost external project doesn't build with VS2010 generator

2011-10-26 Thread David Cole
On Wed, Oct 26, 2011 at 11:56 AM, Ben Medina wrote: > David, > > Yes, adding "call" to the front of the command works. Thanks! Would be > great to get that fixed for 2.8.7, as I spent a good portion of > yesterday racking my brain about this. > > I also discovered that, if using a variable to buil

Re: [CMake] Boost external project doesn't build with VS2010 generator

2011-10-26 Thread Ben Medina
David, Yes, adding "call" to the front of the command works. Thanks! Would be great to get that fixed for 2.8.7, as I spent a good portion of yesterday racking my brain about this. I also discovered that, if using a variable to build the CONFIGURE_COMMAND, that variable should be a list, rather t

Re: [CMake] Setting Platform (Win32 or x64) for Visual Studio in CMake

2011-10-26 Thread John Drescher
On Wed, Oct 26, 2011 at 10:17 AM, Ludovic Hoyet wrote: > Just to know, is there a way to set the platform in the CMakeList? At the > moment if I select VS_XXX if creates uses the Win32 platform, and the x64 is > used if I select VS_XXX x64. I would like to set a variable to the default > platform

Re: [CMake] Setting Platform (Win32 or x64) for Visual Studio in CMake

2011-10-26 Thread Ludovic Hoyet
Just to know, is there a way to set the platform in the CMakeList? At the moment if I select VS_XXX if creates uses the Win32 platform, and the x64 is used if I select VS_XXX x64. I would like to set a variable to the default platform (no pb with that), and let the users modify if if they really wa

Re: [CMake] Setting Platform (Win32 or x64) for Visual Studio in CMake

2011-10-26 Thread Ludovic Hoyet
Ok, that's why I couldn't find any solution... It will be a little less handy to have different sln files, but that should make it. Thanks anyway, Ludovic 2011/10/26 Bill Hoffman > On 10/26/2011 9:18 AM, Ludovic Hoyet wrote: > >> Hi, >> >> I am trying to generate VCproj for Visual Studio 32 an

Re: [CMake] Setting Platform (Win32 or x64) for Visual Studio in CMake

2011-10-26 Thread Bill Hoffman
On 10/26/2011 9:18 AM, Ludovic Hoyet wrote: Hi, I am trying to generate VCproj for Visual Studio 32 and 64bit, and I would like to have the possibility to have both the 32bit version and the 64bit version in a single sln file. For this in Visual studio I can set the platform to x^$ for the confi

Re: [CMake] Weird linking error while cross compiling

2011-10-26 Thread Michael Hertling
On 10/26/2011 10:28 AM, Andreas Pakulat wrote: > On 26.10.11 03:54:02, Jose wrote: >> Sorry for not being very specific. >> >> This is the command that Cmake is running while linking : >> >> /usr/bin/i686-pc-mingw32-g++ -O3 -O3-Wl,-Bstatic -static-libgcc >> -Wl,--whole-archive CMakeFiles/sqt2p

Re: [CMake] specify solution name with --build

2011-10-26 Thread David Cole
On Oct 26, 2011, at 6:03 AM, Anton Sibilev wrote: > Seem I've found issue, in CMakeCache.txt I have two targets: > > //Value Computed by CMake > Project_BINARY_DIR:STATIC=C:/_work/test_build > //Value Computed by CMake > Project_SOURCE_DIR:STATIC=C:/_work/test > > //Value Computed by CMake > te

[CMake] Setting Platform (Win32 or x64) for Visual Studio in CMake

2011-10-26 Thread Ludovic Hoyet
Hi, I am trying to generate VCproj for Visual Studio 32 and 64bit, and I would like to have the possibility to have both the 32bit version and the 64bit version in a single sln file. For this in Visual studio I can set the platform to x^$ for the configurations that I want, but I need to do it by

Re: [CMake] specify solution name with --build

2011-10-26 Thread Anton Sibilev
Seem I've found issue, in CMakeCache.txt I have two targets: //Value Computed by CMake Project_BINARY_DIR:STATIC=C:/_work/test_build //Value Computed by CMake Project_SOURCE_DIR:STATIC=C:/_work/test //Value Computed by CMake test_BINARY_DIR:STATIC=C:/_work/test_build //Value Computed by CMake tes

[CMake] specify solution name with --build

2011-10-26 Thread Anton Sibilev
Hello! Can you please help me? I use such cmdline to run build with CMake - "cmake-2.8.6\bin\cmake --build folder_with_solution", where "folder_with_solution" is folder with some_name.sln file. And what I have is: The following files were specified on the command line: Project.sln These

Re: [CMake] Weird linking error while cross compiling

2011-10-26 Thread Andreas Pakulat
On 26.10.11 03:54:02, Jose wrote: > Sorry for not being very specific. > > This is the command that Cmake is running while linking : > > /usr/bin/i686-pc-mingw32-g++ -O3 -O3-Wl,-Bstatic -static-libgcc > -Wl,--whole-archive CMakeFiles/sqt2pin.dir/objects.a -Wl,--no-whole-archive > -o sqt2pin.

Re: [CMake] Weird linking error while cross compiling

2011-10-26 Thread Jose
Sorry for not being very specific. This is the command that Cmake is running while linking : /usr/bin/i686-pc-mingw32-g++ -O3 -O3-Wl,-Bstatic -static-libgcc -Wl,--whole-archive CMakeFiles/sqt2pin.dir/objects.a -Wl,--no-whole-archive -o sqt2pin.exe -Wl,--out-implib,libsqt2pin.dll.a -Wl,--majo