Re: [CMake] Testing for a target broke for me

2013-12-12 Thread Williams, Norman K
On 12/12/13 2:13 PM, "Richard Shaw" mailto:hobbes1...@gmail.com>> wrote: Very interesting but not quite what I'm looking for, in this case the main CMakeLists.txt does actually build a project, I just need it to build wxWidgets first. Well it's up to you but 'build X and then build Y' is the d

[CMake] Cannot set CMP0022 to OLD

2013-12-12 Thread Andreas Pakulat
Hi, I've been quite annoyed by the warnings from CMP0022 in a project I use ( http://quickgit.kde.org/?p=kdevplatform.git) and wanted to set the policy to OLD to hide the warnings (porting the code is not an option as that would require to enforce CMake 2.8.11 which is too new for this project).

Re: [CMake] Testing for a target broke for me

2013-12-12 Thread Richard Shaw
On Thu, Dec 12, 2013 at 11:20 AM, Williams, Norman K < norman-k-willi...@uiowa.edu> wrote: > This is a case for ExternalProjects. > http://www.kitware.com/media/html/BuildingExternalProjectsWithCMake2.8.html I've read that before but didn't find anything new there. I also tried checking the stat

Re: [CMake] depend.make

2013-12-12 Thread Bill Hoffman
On 12/12/2013 1:07 PM, Lars wrote: Building our software using CMake and VS2005 on Windows platform is very slow. Debugging this issue I discovered the several of the depent.make files are huge. One example is a depent.make file that is roughly 10 MB. In this file most of the object files depende

Re: [CMake] depend.make

2013-12-12 Thread Lars
Building our software using CMake and VS2005 on Windows platform is very slow. Debugging this issue I discovered the several of the depent.make files are huge. One example is a depent.make file that is roughly 10 MB. In this file most of the object files dependent on almost all boost header file

Re: [CMake] Testing for a target broke for me

2013-12-12 Thread Williams, Norman K
This is a case for ExternalProjects. http://www.kitware.com/media/html/BuildingExternalProjectsWithCMake2.8.html Also search for 'cmake superbuild' for discussion of how people are using external projects. An example build setup for prerequisites/projects here: https://github.com/BRAINSia/NamicEx

[CMake] Testing for a target broke for me

2013-12-12 Thread Richard Shaw
I've had this working and I don't *THINK* I changed anything that would cause it to fail now but I'm not completely sure. I have a project I converted over to cmake from automake which requires wxWidgets 3.0 (or the 2.9 devel branch). Although it just released I still want to maintain the ability

Re: [CMake] depend.make

2013-12-12 Thread Bill Hoffman
On 12/12/2013 8:17 AM, Lars wrote: Here is the link: http://www.itk.org/Bug/print_bug_page.php?bug_id=8561 Is this causing you a problem?If there are some extra depends on boost files what is the harm? I am assuming that you are not changing them that much... You could also try the ninja

[CMake] Organizing source files in XCode project to match directory layout

2013-12-12 Thread Lane Schwartz
Hi, I recently ported a relatively small project (https://github.com/kpu/kenlm) to CMake. When I use the Unix Makefile generator, everything works well as expected. Unfortunately, when I use the XCode generator, I'm having difficulty getting the files within the XCode project organized in the desi

Re: [CMake] depend.make

2013-12-12 Thread Lars
Here is the link: http://www.itk.org/Bug/print_bug_page.php?bug_id=8561 From: laasu...@hotmail.com To: marco.clemen...@cern.ch; cmake@cmake.org Date: Thu, 12 Dec 2013 13:58:36 +0100 Subject: Re: [CMake] depend.make Very interesting. Found this thread where Brad King is saying more or less t

Re: [CMake] depend.make

2013-12-12 Thread Lars
Very interesting. Found this thread where Brad King is saying more or less the same thing (this is in 2009). Can anyone confirm this is still the case? How can we filter out boost from depend.make? Using include_regular_expression only allows files filtering and that does not really help in th

Re: [CMake] depend.make

2013-12-12 Thread Marco Clemencic
Hi, I cannot find it anymore in the documentation , but I remember to have read that the dependency scanner of CMake does not take into account the preprocessor conditionals (#ifdef, etc), thus producing a superset of the actual dependencies. It is quite probable that boost/tr1/iostream _may_ i

Re: [CMake] depend.make

2013-12-12 Thread Lars
Thank you for your feedback. This however only explain part of the issue as far as I can tell. To debug the issue I added #pragma message("boost tr1 iostream") at the top of the boost/tr1/iostream file. When building the source that message is shown in the console windows which then indicate

[CMake] question about SET_SOURCE_FILES_PROPERTIES

2013-12-12 Thread pellegrini
Dear CMakers, I have a Fortran project to be built on Windows and Linux using ifort compiler. For two of the project files, I need to add specific compiler flag (i.e. /assume:byterecl). To do so, I used the following CMake command: SET_SOURCE_FILES_PROPERTIES(file1.f90 PROPERTIES COMPILE_FLAG