[CMake] string replacement without external commands help (ex. sed)

2007-08-21 Thread Dizzy
Hello Short version: Is there some built-in support in cmake for string replacement in files (ie to generate a file from another by replacing a given string with another, similar to configure_file() but more general) and could this string replacement operation be used as a "command" for add_cus

Re: [CMake] string replacement without external commands help (ex. sed)

2007-08-21 Thread Dizzy
On Tuesday 21 August 2007 18:22:25 Alexander Neundorf wrote: > On Tuesday 21 August 2007 11:10, Dizzy wrote: > > Hello > > > > Short version: > > Is there some built-in support in cmake for string replacement in files > > (ie to generate a file from another

Re: [CMake] string replacement without external commands help (ex. sed)

2007-08-22 Thread Dizzy
On Tuesday 21 August 2007 19:23:09 Alan W. Irwin wrote: > Seconded.  CONFIGURE_FILE() properly handles the dependency of project.conf > on the template file project.conf.in configure_file() which addresses your > above dependency concern.  Try CONFIGURE_FILE(), and you will like it. Thank you Alan

[CMake] installation of properly line ended text files

2007-08-24 Thread Dizzy
Hello My project in the install phase copies some configuration files. These files are originally using UNIX line endings (we are doing main development on UNIX plus SVN likes to keep them that way). However, when installing on Win32 (or other platform with different line endings) it would be n

[CMake] INSTALL(NEW_DIRECTORY...) ?

2007-08-24 Thread Dizzy
Hello (Sorry for the mailing list spam I should have asked about this too in the previous mail) On install I would need cmake to portably create some empty directories that do not exist in the source. INSTALL(DIRECTORY...) just copies an existent structure in my case that structure does not ex

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread Dizzy
On Friday 24 August 2007 11:48:27 Andreas Pakulat wrote: > You can have a different lineending on the working copy really easily by > using svn:eol-style property (on each file where you want it). That way > you could checkout on win32 and automatically get win32-lineendings for > those files that

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread Dizzy
On Friday 24 August 2007 12:30:58 Andreas Pakulat wrote: > On 24.08.07 12:08:34, Dizzy wrote: > > On Friday 24 August 2007 11:48:27 Andreas Pakulat wrote: > > > Alternatively you could let your program be intelligent enough to guess > > > the lineending by checking wet

Re: [CMake] INSTALL(NEW_DIRECTORY...) ?

2007-08-24 Thread Dizzy
On Friday 24 August 2007 12:25:47 Jack Kelly wrote: > Dizzy wrote: > > To solve this in automake I just created some dummy "_dir" > > variables that automake interpreted and created those empty directories > > on install. I would like to know if there is something s

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread Dizzy
On Friday 24 August 2007 13:04:15 Jack Kelly wrote: > Dizzy wrote: > > Thanks for the idea. I could use as a workarround configure_file() in > > some way or another but then I still need one more issue solved. How to > > escape "${variable}" strings in a input

[CMake] Using WIN32 resource files (with MinGW)

2007-08-26 Thread Dizzy
e I couldn't figure this out myself) Thanks for any help! -- Mihai RUSU Email: [EMAIL PROTECTED] GPG : http://dizzy.roedu.net/dizzy-gpg.txt WWW: http://dizzy.roedu.net "Linux is obsolete" -- AST __

[CMake] check_cxx_compiler_flag() doesn't work with cl.exe/rc.exe

2007-08-27 Thread Dizzy
eople posting on the list useful scripts for cmake, is this a good way to do so? I have some scripts I would like to share with the others -- Mihai RUSU Email: [EMAIL PROTECTED] GPG : http://dizzy.roedu.net/dizzy-gpg.txt WWW: ht

Re: [CMake] check_cxx_compiler_flag() doesn't work with cl.exe/rc.exe

2007-08-27 Thread Dizzy
On Monday 27 August 2007 20:36:25 Alexander Neundorf wrote: > On Monday 27 August 2007 13:29, Dizzy wrote: > > Hello > > > > I use check_cxx_compiler_flag(-ansi -pedantic) to try to use these flags > > where they are valid. However when using nmake makefiles generato

[CMake] FindZLIB.cmake patch: lookup registry GnuWin32 location

2007-08-27 Thread Dizzy
: http://dizzy.roedu.net/dizzy-gpg.txt WWW: http://dizzy.roedu.net "Linux is obsolete" -- AST --- FindZLIB.cmake.orig 2007-08-27 21:39:12.0 +0300 +++ FindZLIB.cmake 2007-08-27 21:41:14.0 +0300 @@ -12,6 +12,7 @@ ENDIF (ZLIB_INCLUDE_DIR)

[CMake] add_definitions() or set_target_properties(... COMPILE_FLAGS)?

2007-08-28 Thread Dizzy
Hello I recently noticed that I am using add_definitions() for general compiler flags (that have been checked previously with check_cxx_compiler_flag()) not just "-D" flags. I also know this works not only when compiling with gcc based compilers (including mingw on Windows) but also with cl.exe

Re: [CMake] Changing the default name "CMakeLists.txt"

2007-08-28 Thread Dizzy
On Tuesday 28 August 2007 12:05:49 Martin Lütken wrote: > If not, then does anyone have an idea how hard it would be to add a > possiblity (command line option I guess) like that to the cmake source code > ? From a simple grep in the cmake CVS sources I think that to add such an option first woul

[CMake] Any roadmap/big todo for 2.6.x?

2007-08-30 Thread Dizzy
Hello Because CVS HEAD seems to be for the 2.6.x release and there is the "CMake-2-4" tag for 2.4.x I tried to find out what is the policy of changes for 2.6.x and 2.4.x. Basically what is allowed to go into 2.4.x and what is the todo/roadmap for 2.6.x that once it's done there will be a 2.6.x

Re: [CMake] FIND_LIBRARY not finding libtoto.so.1 if libtoto.so link is missing

2007-08-31 Thread Dizzy
On Friday 31 August 2007 11:44:11 Eric Noulard wrote: > I was trying to use (as usual) > > FIND_LIBRARY to find an installed library > the library is (Linux system) > > /usr/lib/libtoto.so.1 > which is a symbolic link to > /usr/lib/libtoto.so.1.0.7 > > The link /usr/lib/libtoto.so --> /usr/lib/libt

Re: [CMake] Project being (unnecessarily) relinked

2007-09-04 Thread Dizzy
On Tuesday 04 September 2007 17:28:31 Jesper Eskilson wrote: > Hi! > > I've got a Visual Studio 8 solution generated by CMake where one of the > projects is always being relinked everytime I build it, even when > nothing in it has changed (i.e. if I try to build it twice, it always > relinks the pr

Re: [CMake] Project being (unnecessarily) relinked

2007-09-06 Thread Dizzy
On Wednesday 05 September 2007 18:50:11 you wrote: > On 9/4/07, Dizzy <[EMAIL PROTECTED]> wrote: > > On Tuesday 04 September 2007 17:28:31 Jesper Eskilson wrote: > > > Hi! > > > > > > I've got a Visual Studio 8 solution generated by CMake where one

Re: [CMake] Project being (unnecessarily) relinked

2007-09-12 Thread Dizzy
t target_link_libraries(target name) and not target_link_libraries(target /path/to/libname.a)). What am I missing? :) Thanks! -- Mihai RUSU Email: [EMAIL PROTECTED] GPG : http://dizzy.roedu.net/dizzy-gpg.txt WWW: http://dizzy.roedu.net

Re: [CMake] Project being (unnecessarily) relinked

2007-09-14 Thread Dizzy
variables) seems unportable (or maybe I miss something). Thanks for the sugestion. -- Mihai RUSU Email: [EMAIL PROTECTED] GPG : http://dizzy.roedu.net/dizzy-gpg.txt WWW: http://dizzy.roedu.net "Linux is obsolete" -- AST __

Re: [CMake] Project being (unnecessarily) relinked

2007-09-14 Thread Dizzy
On Friday 14 September 2007 16:19:05 Bill Hoffman wrote: > Dizzy wrote: > > What you are sugesting solves the problem for installable libraries > > (which were installed in a previous to "cmake time", the time where > > FIND_LIBRARY() runs). Problem with "conven

Re: [CMake] Hi and some newbie questions

2007-09-14 Thread Dizzy
tever you know makes the x86 platform (and no I don't believe it returns "x86-64" on a IA32). When finding a match you know it's x86. -- Mihai RUSU Email: [EMAIL PROTECTED] GPG : http://dizzy.roedu.net/dizz

Re: [CMake] Hi and some newbie questions

2007-09-14 Thread Dizzy
cannot deduce it yourself using "uname -m" and equivalents (if the current platform does not offer them). -- Mihai RUSU Email: [EMAIL PROTECTED] GPG : http://dizzy.roedu.net/dizzy-gpg.txt WWW: http://dizzy.roed

Re: [CMake] Cmake inline macro?

2007-09-15 Thread Dizzy
"config.h" in your code. That is of couse assuming that the variable holding the inline keyword (or "" if there is no inline supported) is named INLINE_KEYWORD. Many macros output their result into a user given variable so it fits well in the cmake style. -- Mi

Re: [CMake] override variable in macro

2007-09-21 Thread Dizzy
On Thursday 20 September 2007 20:38:38 Juan Sanchez wrote: > It appears that the set command cannot override a variable specified as > a MACRO argument. > > For example: > MACRO (ADD_GADB RCMD) > > does not accept changes to RCMD within the macro using the set command. > Is there a way to overrid

Re: [CMake] Question about distribution questions

2007-09-21 Thread Dizzy
On Friday 21 September 2007 14:55:43 Joachim Ziegler wrote: > Hello Eric, I'll drop in and try to answer the questions. > > 2 - installing your project (i.e. no error when calling 'make > > install') > > This does not. I have no target "install". Browsing through > > http://www.cmake.org/HTML/

Re: [CMake] Overwiew CMake install commands

2007-09-24 Thread Dizzy
On Monday 24 September 2007 18:35:21 Joachim Ziegler wrote: > Hello list, > > I just don't get the difference between and when to use the different > INSTALL commands (or their subcategory in the new INSTALL command, > resp.) as described on > > http://www.cmake.org/Wiki/CMake:Install_Commands > >

Re: [CMake] Question about CMAKE_INSTALL_PREFIX

2007-09-26 Thread Dizzy
On Wednesday 26 September 2007 11:50:49 Joachim Ziegler wrote: > Hello, > > why does the following not work? I want to install a binary, which has > just been built, into a bin/ directory of the build tree: > > SET(CMAKE_INSTALL_PREFIX ${PROJECT_BINARY_DIR}) > MESSAGE(${CMAKE_INSTALL_PREFIX}) > INS

Re: [CMake] Why are object files built several times?

2007-09-26 Thread Dizzy
On Wednesday 26 September 2007 14:55:52 Joachim Ziegler wrote: > Hello, > > I have two targets that have nearly the same sources: > > ADD_EXECUTABLE(startCompletionServer StartCompletionServer.cpp > ${BASEFILES}) ADD_EXECUTABLE(test-adler32 test-adler32.cpp ${BASEFILES}) > > I wonder why every obje

Re: [CMake] Nonstandard architectures.

2007-09-27 Thread Dizzy
On Thursday 27 September 2007 12:12:56 Mathias Froehlich wrote: > Hi, Hello > I have problems with nonstandard architectures. > > cmakes mechanism to see if some package is installed usually just looks if > some files are present. That is good as long as you just compile for the > standard archit

Re: [CMake] Nonstandard architectures.

2007-09-28 Thread Dizzy
On Friday 28 September 2007 16:36:00 Mathias Froehlich wrote: > > Mathias Froehlich wrote: > > to time. I am not sure that FIND_LIBRARY should do a try_compile, but > > maybe it should > > Probably yes. > IMO, better test what you need rather than test something that is more or > less closely

Re: [CMake] Changing default cpack installation path

2007-10-02 Thread Dizzy
On Monday 01 October 2007 21:33:35 Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Hi, > > Is there a way to change the default installation path in cpack? > This is for NSIS installer on Windows. I tried changing > CPACK_PACKAGE_INSTALL_DIRECTORY but > no matter what I set it t

Re: [CMake] FindZLIB.cmake

2007-10-02 Thread Dizzy
On Tuesday 02 October 2007 01:28:12 Hendrik Sattler wrote: > Am Montag 01 Oktober 2007 schrieb Kedzierski, Artur CIV NAVSURFWARCENDIV > > CORONA: > > Could somebody modify FindZLIB.cmake to search > > "/Program Files/zlib" directory for zlib include and lib directories? > > This is the default

Re: [CMake] INCLUDE cannot find file

2007-10-02 Thread Dizzy
On Tuesday 02 October 2007 12:27:24 Shiqing Fan wrote: > Hi all, > > I just got some problem using INCLUDE. I don't know whether I'm in a > wrong way. > > I used it like this: > > In top level, include a CMakeLists file from a subdirectory sub1 : > INCLUDE (sub1/CMakeLists.txt) This kinda beats th

Re: [CMake] INCLUDE cannot find file

2007-10-02 Thread Dizzy
On Tuesday 02 October 2007 13:18:15 Shiqing Fan wrote: > hi, > > Ok, now I figure it out. as the path is relative to > ${CMAKE_CURRENT_SOURCE_DIR}, so I have to say INCLUDE > (sub1/sub2/CMakeLists.txt) in sub2's CMakeLists, because this file is > actually included in the top level (firstly included

Re: [CMake] Compiling without linking

2007-10-03 Thread Dizzy
On Wednesday 03 October 2007 16:27:14 Baptiste Derongs wrote: > Hello all, > > I just begin in using Cmake (but I'm going faster than I never went > with any configure.in), and I am wondering how to get a '.o' file (how > to call gcc -c in fact). > > I tried to set CMAKE_C_FLAGS to "-c", it kind of

Re: [Bulk] Re: [CMake] custom_command

2007-10-04 Thread Dizzy
On Thursday 04 October 2007 17:20:54 Javier Gonzalez wrote: > Hi again, > > Thanks Eric for the reply. I think what you propose doesn't work for me > and please correct me if I'm wrong. I would like to keep the dependency > and it seems to me that when I use CONFIGURE_FILE the file is not > genera

Re: [CMake] Causing cmake to use stderr instead of stdout.

2007-11-19 Thread Dizzy
On Monday 19 November 2007 18:37:02 Josef Karthauser wrote: > Is it possible (with relative easy) to have cmake send all output to > stderr instead of stdout? Well on a bourne shell I think you can do: cmake /path/to/sources 1>&2 And it will run cmake redirecting fd 1 (stdout) to fd 2 (stderr).

Re: [CMake] Add search paths for FIND_PACKAGE ?

2007-11-20 Thread Dizzy
On Monday 19 November 2007 21:39:45 Stephen Collyer wrote: > > FIND_PATH(CURL_INCLUDE_DIR NAMES curl/curl.h) > > i.e. it hard-codes the assumption that curl.h lives in > a directory called curl. In my case, it doesn't: it lives > in a directory called include and no amount of adding to > or subtrac

Re: [CMake] Add search paths for FIND_PACKAGE ?

2007-11-20 Thread Dizzy
On Monday 19 November 2007 16:00:17 Mike Jackson wrote: > Actually I run into this ALL the time (tiff, expat, hdf5) and I have > most of mine stored in "non-Standard" locations. I end up copying the > the FindXXX.cmake into my local project directory and then adding > some code like the following:

Re: [CMake] Fwd: Re: [Help-gsl] problems raised by GPL v3 in GNU GLS

2008-01-03 Thread dizzy
On Thursday 03 January 2008 13:43:58 Pablo De Napoli wrote: > I forgot to copy this to the List > > -- Mensaje reenviado -- > > Asunto: Re: [Help-gsl] problems raised by GPL v3 in GNU GLS > Fecha: Thu 03 Jan 2008 > De: Pablo De Napoli <[EMAIL PROTECTED]> > Para: "Ralph Silva" <[EM

Re: [CMake] Find*.cmake variable naming

2008-01-14 Thread dizzy
On Tuesday 15 January 2008 03:29:40 Brandon Van Every wrote: > On Jan 14, 2008 1:01 PM, Rodolfo Schulz de Lima <[EMAIL PROTECTED]> wrote: > > Some packages create a > > *_LIBRARY, others *_LIBRARIES, > > Sometimes a library, like PNG, creates both, and the meanings are > distinct. *_LIBRARY is th

Re: [CMake] Feature request (with patch): add #cmakedefine-like directive without #define

2008-01-23 Thread dizzy
On Wednesday 23 January 2008 14:11:06 Hendrik Sattler wrote: > Quoting Pau Garcia i Quiles <[EMAIL PROTECTED]>: > > It would be nice if we had something like #cmakedefine but for > > arbitrary files which only wrote the value. For example: "#cmakewrite > > my_text", which would generate "my_text".

Re: [CMake] Enable warnings

2008-02-25 Thread dizzy
On Sunday 24 February 2008 23:22:58 blinkeye wrote: > >> On 2/24/08, David Sveningsson <[EMAIL PROTECTED]> wrote: > >> > >> Hi, I'm quite new with cmake and I can't figure out how to enable > >> warnings for the generated makefiles/projects. For instance, I would > >> like to use the -Wall flag wi

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-22 Thread dizzy
On Monday 21 April 2008 12:51:46 Horacio Sanson wrote: > I can use IF(WIN32) and IF(UNIX) to set some variables depending if > cmake is executed in Windows or UNIX systems. The problem is that UNIX > in this context includes both Linux and FreeBSD. > > Has CMake a way to know if it is running in a

Re: [CMake] gcc and concept-checks

2008-05-15 Thread dizzy
On Thursday 15 May 2008 15:55:46 Maik Beckmann wrote: > Hi all, > > I just download the gcc-4.3 binary distribution of mingw. It fails to > compile CMake due to > {{{ > class cmSourceGroup > { > ... > std::vector GroupChildren; // cmSourceGroup is incomplete! > }; > }}} > since libstdc++ is co

Re: [CMake] CMake questions

2008-05-22 Thread dizzy
On Thursday 22 May 2008 12:03:01 Oleg Puchinin wrote: > Hello ! > > I have two questions. > 1. How to add source files to target ? See the man page for "ADD_EXECUTABLE", basically when you add a target you have to specify the sources it's made of too. > 2. How to build target with debug info ?

Re: [CMake] unix header files

2008-06-18 Thread dizzy
On Wednesday 18 June 2008 15:00:18 Ingrid Kemgoum wrote: > hi, > i've seen in my project and on the net that unix makefiles skips header > files. What do you mean? > how is it possible to put them on dependancies? > In my header i have some variable initialized so i want the source files to > be

Re: [CMake] GCC version variable

2008-06-19 Thread dizzy
On Wednesday 18 June 2008 23:48:03 Emmanuel Blot wrote: > Is there some CMake macro to report the version of the GCC compiler > version? > It seems these macros exist for the CL compiler, but I've not found > the matching macros for GCC. > > Some warnings are produced w/ GCC 4, but the matching war