Re: [CMake] How to make FILE() append to the list of files?

2008-11-27 Thread Robert Dailey
On Thu, Nov 27, 2008 at 2:31 PM, Alexander Neundorf <[EMAIL PROTECTED] > wrote: > On Thursday 27 November 2008, Eric Noulard wrote: > > 2008/11/27 Robert Dailey <[EMAIL PROTECTED]>: > > >> find . -name "*.c" > source_files.txt > > >> edit source_files.txt and put that list of files exiplicitly int

Re: [CMake] Can't configure Perl on Windows

2008-11-27 Thread Tron Thomas
Okay, so even though CMake succeeded on my system without setting CMAKE_PREFIX_PATH, I set it anyway. I then deleted all the CMake generated file, and ran CMake again. This time CMake said that it found Perl in the location I wanted CMake to find it, and the build configuration succeeded. I'

Re: [CMake] Can't configure Perl on Windows

2008-11-27 Thread Alexander Neundorf
On Friday 28 November 2008, Tron Thomas wrote: > When I remove the PATHS entry from the find_library library, CMake > succeeds. This is because I have Cygwin installed, and CMake finds the Hmm. Mainly it succeeds because now it defaults to the "module-mode", i.e. it searches for a FindPerl.cmake

Re: [CMake] Can't configure Perl on Windows

2008-11-27 Thread Tron Thomas
When I remove the PATHS entry from the find_library library, CMake succeeds. This is because I have Cygwin installed, and CMake finds the perl executable in the Cygwin installation. Cygwin is not required for the project I'm trying to develop, and I don't want to force someone to install it f

Re: [CMake] Can't configure Perl on Windows

2008-11-27 Thread Alexander Neundorf
On Thursday 27 November 2008, Tron Thomas wrote: > Since Perl is not typically included with Windows, I am including the > Windows version in the source tree.  The relevant CMake code goes something > like this: > > cmake_minimum_required(VERSION 2.6) > > project(MyProject) > > enable_testing()

[CMake] Can't run units test defined in subdirectories

2008-11-27 Thread Tron Thomas
I am trying to use CMake to configure a project on Mac OS X that contains different subdirectories where various libraries and such are built. These subdirectories will also contain unit tests for the built components. In the root CMakeLists.txt file, I have defined a macro that will help

Re: [CMake] Can't configure Perl on Windows

2008-11-27 Thread Tron Thomas
Since Perl is not typically included with Windows, I am including the Windows version in the source tree.  The relevant CMake code goes something like this: cmake_minimum_required(VERSION 2.6) project(MyProject) enable_testing() find_package(Perl REQUIRED PATHS ${CMAKE_SOURCE_DIR}/) The r

Re: [CMake] Can't configure Perl on Windows

2008-11-27 Thread Alexander Neundorf
On Thursday 27 November 2008, Tron Thomas wrote: > I am trying to configure a CMake project which requires Perl for > building on Windows. I have added the find_package command specifying > that Perl is required and providing the path for where the Perl binaries > are located. Despite this, I get

Re: [CMake] How to make FILE() append to the list of files?

2008-11-27 Thread Alexander Neundorf
On Thursday 27 November 2008, Eric Noulard wrote: > 2008/11/27 Robert Dailey <[EMAIL PROTECTED]>: > >> find . -name "*.c" > source_files.txt > >> edit source_files.txt and put that list of files exiplicitly into a > >> CMakeLists.txt file. > >> > >> file(GLOB is a bad way to get source lists for CM

Re: [CMake] Docstring from cache variable

2008-11-27 Thread Alexander Neundorf
On Thursday 27 November 2008, James Bigler wrote: > Is it possible to get the docstring of a cache variable using > something like get_property (or perhaps another mechanism)? > > I tried this, but it didn't work. > > get_property(MYVAR_DOCSTRING VARIABLE PROPERTY DOCSTRING) > message("MYVAR_DOCSTR

Re: [CMake] Testing for a Target

2008-11-27 Thread Alexander Neundorf
On Wednesday 26 November 2008, Michael Jackson wrote: > On Nov 26, 2008, at 4:34 PM, Eric Noulard wrote: > > 2008/11/26 Michael Jackson <[EMAIL PROTECTED]>: > >> Is there a way to actually test to see if a target exists or has been > >> created? > >> > >> I am working on the boost-cmake stuff and I

Re: [CMake] Invoking "make" with CMake scripts?

2008-11-27 Thread Alexander Neundorf
On Thursday 27 November 2008, Robert Dailey wrote: > On Wed, Nov 26, 2008 at 5:41 PM, Michael Jackson < ... > >> Is this the recommended way to handle this issue? What would you guys > >> recommend? Should I provide precompiled binaries for all platforms in > >> version control so I don't have to w

Re: [CMake] Having per-source file different includes

2008-11-27 Thread Alexander Neundorf
On Wednesday 26 November 2008, Steven Van Ingelgem wrote: > Hi, > > > Is it possible to change the "include_directories" per source file? > I know I could do set_source_file_property( ... COMPILE_DEFINITIONS > -Itesting... ), but this is not very portable I think? Well, I think it is not nice and

Re: [CMake] dependency of dependency

2008-11-27 Thread Alexander Neundorf
On Wednesday 26 November 2008, Hugo Heden wrote: > 2008/11/26 Mathieu Malaterre <[EMAIL PROTECTED]>: > > Hi there, > > Hi there! > > > I remember there is now a new behavior in cmake where you can > > specify not to pull a dependency of dependency. For instance my > > project is linking to vtk whi

Re: [CMake] FindBoost (once again...)

2008-11-27 Thread Philip Lowman
On Sun, Nov 23, 2008 at 1:08 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > On 23.11.08 18:58:57, Christian Ehrlicher wrote: > > Andreas Pakulat schrieb: > >> On 23.11.08 14:43:19, Christian Ehrlicher wrote: > >>> Hi, > >>> > >>> FindBoost does not work for me on windows because of a wrong pathn

[CMake] Can't configure Perl on Windows

2008-11-27 Thread Tron Thomas
I am trying to configure a CMake project which requires Perl for building on Windows. I have added the find_package command specifying that Perl is required and providing the path for where the Perl binaries are located. Despite this, I get output like the following when trying to configure u

[CMake] Does Cmake has plan to support Borland C++ builder 6?

2008-11-27 Thread 劉大維
Dear Sir, Does Cmake has plan to support Borland C++ builder 6? Thanks! Best Regards, sunshine_uyl ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] How to make FILE() append to the list of files?

2008-11-27 Thread Michael Jackson
On Nov 27, 2008, at 1:12 AM, Robert Dailey wrote: On Wed, Nov 26, 2008 at 7:27 PM, Bill Hoffman <[EMAIL PROTECTED] > wrote: Robert Dailey wrote: Hi, I have about 20 directories that contain source files. However, the FILE() call I make to each directory will have a different glob expressi

Re: [CMake] INCLUDE_DIRECTORIES in sub-directories doesn't work?

2008-11-27 Thread Hugo Heden
2008/11/26 Bill Hoffman <[EMAIL PROTECTED]>: > The concept of a directory property in CMake is not one to one with the disk > directories. A directory in CMake is a directory that has a list of > targets in it. You can have a target that uses files from all sorts of > different directories. So