Re: [CMake] Convert libtool convenience libraries to cmake

2009-04-07 Thread Pau Garcia i Quiles
http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake_support_.22convenience.22_libraries.3F On Wed, Apr 8, 2009 at 5:29 AM, Yevgen Muntyan wrote: > Hi, > > I want to convert an autotools project to cmake. But, I don't know how to > solve the problem of the > convenience libraries. The issue is: the pro

[CMake] Convert libtool convenience libraries to cmake

2009-04-07 Thread Yevgen Muntyan
Hi, I want to convert an autotools project to cmake. But, I don't know how to solve the problem of the convenience libraries. The issue is: the project builds a shared library of bunch of libtool convenience libraries. Each convenience library uses different compilation flags (which is very im

Re: [CMake] Fwd: ARGV to pass to CMAKE_COMMAND

2009-04-07 Thread Bill Hoffman
Alexander Neundorf wrote: On Wednesday 08 April 2009, Bill O'Hara wrote: Perhaps I'm missing something. What I'm trying to do is script things so the usercan do this cd build cmake -Dfoo=bar /path/to/sources make The problem here is that the user could also do: cd build cmake-gui # set foo an

[CMake] Changing prefix on Library module file

2009-04-07 Thread John Dey
Hi List, I'm new to cmake and need a little help: In one of my subdirectories I am creating a MODULE lib and I set CMAKE_SHARE_MODULE_PREFIX to "". The lib still shows up as the prefix on the file. How do I eliminate it? I am using OSX 10.5 with a intel chip. Any direction would be gre

[CMake] Library file not compiling

2009-04-07 Thread John Dey
Hi List, I'm new to cmake and need a little help: When I make from the root of the binary tree, I get the error below. Yet when I go the subdirectory clthreads, make from that dir creates the lib. Returning to the root and remaking eliminates the error. What am I missing? aeolus_build

Re: [CMake] Fwd: ARGV to pass to CMAKE_COMMAND

2009-04-07 Thread Alexander Neundorf
On Wednesday 08 April 2009, Bill O'Hara wrote: > Perhaps I'm missing something. What I'm trying to do is script things so > the usercan do this > > cd build > cmake -Dfoo=bar /path/to/sources > make The problem here is that the user could also do: cd build cmake-gui # set foo and maybe other varia

Re: [CMake] Fwd: ARGV to pass to CMAKE_COMMAND

2009-04-07 Thread Bill O'Hara
Perhaps I'm missing something. What I'm trying to do is script things so the usercan do this cd build cmake -Dfoo=bar /path/to/sources make where the CMakeLists.txt in /path/to/sources actually ends up building several different things by creating directories for each thing, stepping in and calli

Re: [CMake] Fwd: ARGV to pass to CMAKE_COMMAND

2009-04-07 Thread Bill Hoffman
Bill O'Hara wrote: Also to mail list. -- Forwarded message -- From: *Bill O'Hara* mailto:billtoh...@gmail.com>> Date: Tue, Apr 7, 2009 at 12:51 PM Subject: Re: [CMake] ARGV to pass to CMAKE_COMMAND To: a.neundorf-w...@gmx.net I think it makes se

[CMake] Fwd: ARGV to pass to CMAKE_COMMAND

2009-04-07 Thread Bill O'Hara
Also to mail list. -- Forwarded message -- From: Bill O'Hara Date: Tue, Apr 7, 2009 at 12:51 PM Subject: Re: [CMake] ARGV to pass to CMAKE_COMMAND To: a.neundorf-w...@gmx.net I think it makes sense for us. We have a quite large build and sometimes users want to rebuild part of o

Re: [CMake] ARGV to pass to CMAKE_COMMAND

2009-04-07 Thread Alexander Neundorf
On Tuesday 07 April 2009, Bill O'Hara wrote: > Hi, > > At one point in a user's build they are calling out to CMAKE_COMMAND as > part of a custom target. > > Is there an easy way to propagate all the arguments to the original cmake > invocation to this child cmake process? Essentially I just want t

[CMake] ARGV to pass to CMAKE_COMMAND

2009-04-07 Thread Bill O'Hara
Hi, At one point in a user's build they are calling out to CMAKE_COMMAND as part of a custom target. Is there an easy way to propagate all the arguments to the original cmake invocation to this child cmake process? Essentially I just want to be able to grab ARGV of the parent cmake but didn't spo

Re: [CMake] [vtkusers] How to hide the console for a VTK/Qt app

2009-04-07 Thread Bill Hoffman
John Drescher wrote: if(WIN32) set_target_properties(WindowApplicationExample PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE") set_target_properties(WindowApplicationExample PROPERTIES RELWITHDEBINFO "/SUBSYSTEM:CONSOLE") set_target_properties(WindowApplicationExample PROPERTIES LI

Re: [CMake] load CMakeCache.txt settings into new build directory?

2009-04-07 Thread Ian Monroe
On Tue, Apr 7, 2009 at 10:04 AM, John Drescher wrote: >> But I don't really know what the users needs. Like for me I don't need >> to pass any options. Others might have had to tweak things to >> recognize a given library. >> >> I wonder if I could just run a find&replace regex on the >> CMakeCach

[CMake] bootstrap help

2009-04-07 Thread John Vines (CISD/HPCD)
All, I am attempting to build cmake 2.6.3 on Red Hat linux 4. I have built my own version of gcc 4.2, the system has 3.4.6, and am attempting to build cmake pointing to my version of libstdc++.so.6. The system does not have a previous version of cmake so I'm using the bootstrap to build c

[CMake] Fwd: load CMakeCache.txt settings into new build directory?

2009-04-07 Thread John Drescher
-- Forwarded message -- From: John Drescher Date: Tue, Apr 7, 2009 at 10:04 AM Subject: Re: [CMake] load CMakeCache.txt settings into new build directory? To: Ian Monroe > But I don't really know what the users needs. Like for me I don't need > to pass any options. Others might

Re: [CMake] load CMakeCache.txt settings into new build directory?

2009-04-07 Thread Ian Monroe
On Mon, Apr 6, 2009 at 10:33 PM, Michael Jackson wrote: > I _think_ the way to do this in your script would be to use either one of: > >  -C          = Pre-load a script to populate the cache. >  -D :=     = Create a cmake cache entry. > > In the -C variant you would have a *.cmake file that has

[CMake] wanna execute a command on make clean through cmakelists

2009-04-07 Thread ankit jain
Hi all, I want to remove certain files when i do make clean.These files are generated while running tests. how to achieve it.. if i dont do that the files which once generated remains there... on make clean only object files will remove automatically nothing is needed to do from our side. but apar

Re: [CMake] Using C++ compilers for C source files?

2009-04-07 Thread Alexandre.Feblot
By the way, I filled a (minor) bug for that: http://public.kitware.com/Bug/view.php?id=8851 Regards, Alexandre -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Nadir SOUALEM Sent: Tuesday, 07 April 2009 13:01 To: Robert Blake; cmake@cmak

Re: [CMake] Using C++ compilers for C source files?

2009-04-07 Thread Nadir SOUALEM
Robert Blake wrote: Aha! Hadn't read this. After following everyone's advice, and using the following section in my CMakeLists.txt file: PROJECT(Blah) file(GLOB_RECURSE C_FILES ${CMAKE_CURRENT_SOURCE_DIR} *.c) set_source_files_properties(${C_FILES} PROPERTIES LANGUAGE CXX) ... I get the foll