[CMake] Warn on Macro re-definition?

2012-03-21 Thread Clifford Yapp
Is there any flag or setting I can turn on in CMake to have it print a warning when in the course of a CMake configure a macro definition is being re-defined? Occasionally a sub-configure that I've tried to set up as being independent will have an older copy of a macro that is missing features and

Re: [CMake] Couple of library/link questions

2012-03-21 Thread Oliver kfsone Smith
Andreas Pakulat said the following on 3/20/2012 5:21 PM: - The makefiles I'm basing this on build libevent_core.lib, libevent_extras.lib and then libevent.lib which is basically the two previous libraries merged. I wanted to do: ADD_LIBRARY(libevent_core ${CoreSrcFiles}) ADD_LIBRARY(libevent_ex

Re: [CMake] Couple of library/link questions

2012-03-21 Thread Oliver kfsone Smith
Jean-Christophe Fillion-Robin said the following on 3/20/2012 5:54 PM: Hi Olivier, Assuming you have not set the flag, BUILD_SHARED_LIBS [1] set to TRUE, I will consider you are building static libraries. If this last statement is valid, it seems your approach is the right one. Ah, I actually

Re: [CMake] Idea - integrate superbuild dependency requirements

2012-03-21 Thread David Cole
Good ideas. Perhaps beyond the scope of our little CMake module named ExternalProject, but definitely good ideas. It starts to approach the capabilities of a full blown package manager with version and dependency management features. And I think that is quite beyond the scope... ExternalProject i

Re: [CMake] Idea - integrate superbuild dependency requirements

2012-03-21 Thread Danielle Pace
Clarification - this is because we are tracking CTK's master branch - you wouldn't see this problem if you fixed your dependency to be a specific release/git commit. -Danielle On Wed, Mar 21, 2012 at 2:26 PM, Danielle Pace wrote: > Hi all, > > An idea for future cmake improvements - > > We ran

[CMake] Idea - integrate superbuild dependency requirements

2012-03-21 Thread Danielle Pace
Hi all, An idea for future cmake improvements - We ran into an issue on one of the open-source toolkits I'm working on (Tubetk, http://public.kitware.com/Wiki/TubeTK). TubeTK uses superbuild (ExternalProject_Add) to handle a dependency on CTK, which in turn requires CMake 2.8.4. However, the Tu

Re: [CMake] FortranCInterface generating header correctly?

2012-03-21 Thread Michael Wild
On 03/21/2012 02:32 PM, Giovanni Azua wrote: > Hello, > > I have a project for which the main language is C (soon CPP) that calls > some functions from Intel MKL. I have the need to use four third-party > high performance fortran routines and I need to: > > 1) be able to call these Fortran routin

[CMake] Ninja: Recognize and in CMAKE_DEPFILE_FLAGS_${lang}

2012-03-21 Thread Amine Khaldi
Hi, I've attached a patch that allows us to set(CMAKE_DEPFILE_FLAGS_RC "--preprocessor \" -E -xc-header -MMD -MF -MT \"") to properly track dependencies in rc files (otherwise it's completely off). Regards, Amine. Source/cmNinjaTargetGenerator.cxx |4 1 files changed, 4 insertions

[CMake] CTEST_BUILD_CONFIGURATION is being ignored

2012-03-21 Thread Michael Pfeuti
Hi again, I possibly discovered a BUG. I have the following excerpt from my ctest script that I execute with "ctest -S". In Version 1, I try telling ctest to tell the configuration to configure a Debug Build. But this didn't work. I specifically need to pass the option to the ctest_configure a

Re: [CMake] Reading DartConfiguration.tcl

2012-03-21 Thread Michael Pfeuti
Hi again, my problem resolved itself. Instead of trying to read the tcl file in the execution phase I simply used the configure_file() to set the variables I want. There is even a sample CTestScript shipped with cmake. So I just used this. Regards michael

Re: [CMake] Different behaviour between cmake-gui vs cmake using command line mode

2012-03-21 Thread David Cole
For the same behavior as cmake-gui, use the same build directory. (For the command line app "cmake", the current working directory is the build directory... The argument you give the first time you run it is the source directory.) Try: >> cd C:/Arnault/CMT2/test/A/build >> cmake .. >> cmake --bui

[CMake] FortranCInterface generating header correctly?

2012-03-21 Thread Giovanni Azua
Hello, I have a project for which the main language is C (soon CPP) that calls some functions from Intel MKL. I have the need to use four third-party high performance fortran routines and I need to: 1) be able to call these Fortran routines from my C code 2) Automatically generate C headers I c

[CMake] Different behaviour between cmake-gui vs cmake using command line mode

2012-03-21 Thread Christian Arnault
Hi, I am using cmake version 2.8.7 both on Windows 7 & on Linux. In windows, I configure a project with some sources. 1) Using the cmake-gui tool, I can specify both where to find the sources (eg: C:/Arnault/CMT2/test/A) and where to build the binaries (eg: C:/Arnault/CMT2/test/A/build) (M