Re: [CMake] Rebuild target when external library changes?

2008-12-02 Thread Bill Hoffman
Lezz Giles wrote: I have a project set up that imports libraries, and I want to relink if those imported libraries change; For example, in a directory I have hellow.c libfred.a CMakeLists.txt where CMakeLists.txt contains: - LINK_DIRECTOR

[CMake] feedback on fortran support

2008-12-02 Thread Daniel Franke
Hi all. After years of automake, I only recently starting looking into CMake. Setting up a multi-language project (C/C++/Fortran) was simple and everything just works. Impressive! Two nitpicks/suggestions: 1. As CheckCSourceCompiles and CheckCXXSourceCompiles macros are available, one would

[CMake] Rebuild target when external library changes?

2008-12-02 Thread Lezz Giles
I have a project set up that imports libraries, and I want to relink if those imported libraries change; For example, in a directory I have hellow.c libfred.a CMakeLists.txt where CMakeLists.txt contains: - LINK_DIRECTORIES(.) ADD_EXECUTABLE(hellow hellow

Re: [CMake] list( LENGTH ) problem

2008-12-02 Thread Alexander Neundorf
On Tuesday 02 December 2008, Robert Dailey wrote: > Hi, > > I execute the following CMake code: > > list( LENGTH "foo;bar" listlen ) > message( ${listlen} ) > > However, this results in the value "0" to be printed. I expect this to > print "2". What am I doing wrong? It expects a variable which ho

Re: [CMake] [Paraview] Plugin Basics

2008-12-02 Thread Michael Jackson
Gaaah I'm using a variable (SOURCES) that is actually an optional argument to the ADD_PARAVIEW_PLUGIN() macro. If I change SET (SOURCES ${ParaViewExamples_SOURCE_DIR}/ vtkMyElevationFilter.cxx) to SET (_SOURCES ${ParaViewExamples_SOURCE_DIR}/vtkMyElevationFilter.cxx) ADD_PARAVIEW_

Re: [CMake] list( LENGTH ) problem

2008-12-02 Thread Maik Beckmann
Am Dienstag, 2. Dezember 2008 schrieb Robert Dailey: > Hi, > > I execute the following CMake code: > > list( LENGTH "foo;bar" listlen ) > message( ${listlen} ) > > However, this results in the value "0" to be printed. I expect this to > print "2". What am I doing wrong? list takes a list-name, so

[CMake] list( LENGTH ) problem

2008-12-02 Thread Robert Dailey
Hi, I execute the following CMake code: list( LENGTH "foo;bar" listlen ) message( ${listlen} ) However, this results in the value "0" to be printed. I expect this to print "2". What am I doing wrong? ___ CMake mailing list CMake@cmake.org http://www.cm

[CMake] UTILITY project

2008-12-02 Thread Yves Martelli
Hi, I'm configuring a solution for Microsoft Visual Studio with a lot a projects all depending on each others. When I run CMake, it creates a 'myproject.vcprj' but also a 'myproject_UTILITY.vcprj'. Then in the solution whoever is depending on myproject will have, in the dependency UI, a dependen

Re: [CMake] How to automate cmake installation on windows

2008-12-02 Thread David Genest
>>Is there a way to run the cmake windows installer without user >>intervention? I did not find any documentation on the subject. I would >>like to be able to install from a script. What is the best way achieve >>this ? >One way would be to create an MSI installer for CMake using a tool like Wix.

Re: [CMake] Getting rid of unwanted quotes that CMake inserts into commands

2008-12-02 Thread Brad King
Alan W. Irwin wrote: > Shouldn't that be up to the user to insert quotes where needed in the > command rather than CMake anticipating their needs (incorrectly in this > case)? Every make's shell requires different escapes. The VERBATIM option was *added* to help users get the same custom command

Re: [CMake] global variable vs propagation of include_directories

2008-12-02 Thread Brad King
Sowa, Bartlomiej (NSN - PL/Wroclaw) wrote: > It would be ideal, to have a way to propagate and aggregate > include_directories up the add_subdirectory hierarchy. Can you help me > to find a way to do this? You can use global properties as global variables. See the set_property()/get_property() co

Re: [CMake] cmake-gui(beta) does not show a change in CMAKE_CXX_FLAGS

2008-12-02 Thread Bill Hoffman
Philip Lowman wrote: On Mon, Dec 1, 2008 at 3:39 PM, Bill Hoffman <[EMAIL PROTECTED] > wrote: Has a FORCE_ONCE option ever been considered? The idea would be to allow the user to (as a one time operation) to force a cache value on top of an already existing cache

Re: [CMake] 'unset' not in --help-commands-list (also, attn: neundorf)

2008-12-02 Thread Philip Lowman
On Tue, Nov 18, 2008 at 6:39 PM, Matthew Woehlke < [EMAIL PROTECTED]> wrote: > Need a bug opened for this or is it trivial enough to fix on the spot? unset appears to be in --help-commands and --help-command-list. Was this a bug? If so, how was it fixed? -- Philip Lowman

Re: [CMake] Can't get include() to work!

2008-12-02 Thread Philip Lowman
On Mon, Dec 1, 2008 at 11:52 PM, Robert Dailey <[EMAIL PROTECTED]> wrote: > On Mon, Dec 1, 2008 at 9:53 PM, Philip Lowman <[EMAIL PROTECTED]> wrote: > >> include( ${CMAKE_CURRENT_SOURCE_DIR}/includes.cmake) >> should also work. >> CMAKE_MODULE_PATH may also help you if you have a lot of includes.

Re: [CMake] patches

2008-12-02 Thread Pau Garcia i Quiles
On Tue, Dec 2, 2008 at 1:17 PM, Dean <[EMAIL PROTECTED]> wrote: > I recently had to change source code for CPack to support the "Replaces:" > and "Conflicts:" fields in Debian packages and I was wondering if there is a > way to submit patches, or if anyone is even interested. It's actually a > ver

[CMake] patches

2008-12-02 Thread Dean
I recently had to change source code for CPack to support the "Replaces:" and "Conflicts:" fields in Debian packages and I was wondering if there is a way to submit patches, or if anyone is even interested. It's actually a very simple fix but I thought I'd check with the list. Also, what is

Re: [CMake] To specify dependency to other library

2008-12-02 Thread Per Rosengren
Per Rosengren wrote: > I have two programs foo and bar. > All classes and functionality that could potentially be used by other > programs are in the library mor. > foo and bar include mor's headers and link to it. > mor will be used by other developers. foo and bar should not be > accessible by th