RE: [CMake] MSVC turn off RelWithDebInfo and MinSizeRel

2007-12-20 Thread Torsten Martinsen
David Cole wrote: > I will see if I can find / figure out what I did to make this work -- > I know I've done it before to eliminate all but one config type... > > How about this in the CMakeLists.txt file instead? (Force it into the > cache rather than using a simple set

Re: [CMake] ADD_SUBDIRECTORY

2007-12-20 Thread George Neill
Hi Alan, > Well, don't shut up. :-) ok. :) > However, if you have created targets lib1, lib2, lib3 with the > EXCLUDE_FROM_ALL attribute, in various subdirectories and want one special > make target that builds all of them, then use > > add_custom_target(libs) > add_dependencies(libs lib1, li

[CMake] Re: escaping!

2007-12-20 Thread Rodolfo Lima
Andrew Roark escreveu: > More complicated/involved build tasks that I've mentioned in this thread? Not > so much. Do you think Lua would help here, I mean, If it were supported by cmake? Regards, rod ___ CMake mailing list CMake@cmake.org http://www.

Re: [CMake] escaping!

2007-12-20 Thread Andrew Roark
> On Dec 20, 2007 4:25 PM, Andrew Roark wrote: > > > > By all means, if it can be done in CMake, then do it in CMake. > > > > But the CMake philosophy itself is in dispute with your argument. > > I don't need anything but CMake to do regexes. They aren't ideal > regexes, but you can still get pr

[CMake] Target flags depending on compilation of another target

2007-12-20 Thread Rodolfo Lima
How can I set an executable compiler flags based on the result of the compilation of another target? Or, with another words, can I set a directory's COMPILER_FLAGS at build time? Regards, rod ___ CMake mailing list CMake@cmake.org http://www.cmake.org/m

Re: [CMake] ADD_SUBDIRECTORY

2007-12-20 Thread Alan W. Irwin
On 2007-12-20 17:09-0600 George Neill wrote: ... or do I just shut up and continue using the dang ADD_CUSTOM_TARGET() function :) Well, don't shut up. :-) However, if you have created targets lib1, lib2, lib3 with the EXCLUDE_FROM_ALL attribute, in various subdirectories and want one special

Re: [CMake] ADD_SUBDIRECTORY

2007-12-20 Thread George Neill
Hi Alexander, > I think it may be not that hard, it also makes some sense, but to me this > would feel a bit like bloat. Yeah possibly ... it certainly would have saved me a few minutes! (not that it really matters, in the end I was able to make CMake do what I needed without too much hassle). I

Re: [CMake] ADD_SUBDIRECTORY

2007-12-20 Thread Alexander Neundorf
On Friday 21 December 2007, George Neill wrote: > Hi Brandon, ... > ... thinking out loud ... > > 1. 'make all' shouldn't include this psuedo target (becuase it's > already covered with first,second and third) > > 2. sub-project dependencies (might be painful?) ... maybe I wouldn't > have to mess

Re: [CMake] ADD_SUBDIRECTORY

2007-12-20 Thread George Neill
Hi Brandon, > Having a subdirectory doesn't imply you want that stuff built as part > of "make all." In fact there are explicit options to avoid this. A > typical example is you've got some source code for sample projects, > but you don't want the sample projects built by default. Test cases >

[CMake] wiki page about cmake variables, lists, escaping etc.

2007-12-20 Thread Alexander Neundorf
Hi, if you file like you have to say something about this, please add it here: http://www.cmake.org/Wiki/CMake:VariablesListsStrings Thanks Alex ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] escaping!

2007-12-20 Thread Brandon Van Every
On Dec 20, 2007 4:25 PM, Andrew Roark <[EMAIL PROTECTED]> wrote: > > By all means, if it can be done in CMake, then do it in CMake. > > But the CMake philosophy itself is in dispute with your argument. I don't need anything but CMake to do regexes. They aren't ideal regexes, but you can still get

Re: [CMake] escaping!

2007-12-20 Thread Andrew Roark
> On Dec 10, 2007 7:12 PM, Andrew Roark wrote: > > > > For any tricky file operations (like "all files ending with > XML > greater than 2Kb using DOS newlines" etc) I would personally write a > python > script (e.g. ROOTDIR/util/xmlfinder.py) to do that work and make > the > command simply i

Re: [CMake] ADD_SUBDIRECTORY

2007-12-20 Thread Brandon Van Every
On Dec 20, 2007 11:47 AM, George Neill <[EMAIL PROTECTED]> wrote: > > I guess by issuing the ADD_SUBDIRECTORY() ( along with a PROJECT() ) I > am implicitly saying there's going to be a collection of stuff built > under this project. It makes sense (to me) CMake could automatically > generate a ps

[CMake] external library dependencies

2007-12-20 Thread James Bigler
I have one project built by cmake where I write out the library configuration with EXPORT_LIBRARY_DEPENDENCIES. I have another project where I include that file. This works great for static building, because it handles all the transitive link properties. One thing I noticed, however, is

Re: [CMake] Re: Calling a dynamically created macro

2007-12-20 Thread Jesper Eskilson
Brandon Van Every wrote: On Dec 20, 2007 2:55 PM, Jesper Eskilson <[EMAIL PROTECTED]> wrote: Please let us know when you've implemented a webserver in CMake. ;-) It'll never happen. I can't stand the web. I'm a 3D / ASM / AI / game / build system guy. To me, the web has always been "the bor

Re: [CMake] mingw32 linker line exceeds win32 limitations

2007-12-20 Thread Jesper Eskilson
Felix Obenhuber wrote: Dear CMake developer and users, I've encountered some probs with a an issue whitch already raised last year in the a post [1]. Mingw32-make (5.1.3) minds about a too long linker line. To be picky, mingw32-make (i.e. GNU make) doesn't mind at all, but cmd.exe might. (M

Re: [CMake] Re: Calling a dynamically created macro

2007-12-20 Thread Brandon Van Every
On Dec 20, 2007 2:55 PM, Jesper Eskilson <[EMAIL PROTECTED]> wrote: > > Please let us know when you've implemented a webserver in CMake. ;-) It'll never happen. I can't stand the web. I'm a 3D / ASM / AI / game / build system guy. To me, the web has always been "the boring stuff that runs slowl

Re: [CMake] Re: Calling a dynamically created macro

2007-12-20 Thread Jesper Eskilson
Brandon Van Every wrote: On Dec 19, 2007 7:05 PM, David Cole <[EMAIL PROTECTED]> wrote: Now this thread is just plain cool. :-) Wait until I start building up a more advanced metaprogramming language from raw regular expressions. That idea occurred to me last night. I know regexes really we

[CMake] Re: Re: MSVC turn off RelWithDebInfo and MinSizeRel

2007-12-20 Thread Fernando Cacciola
David Cole wrote: What do you mean? Do you get an error message? If so, send along the text of the error... OK I didn't post the error becasue I could reproduce it... I just remember seeing it. But now I got what happens, let me explain: Say you have: SET(CMAKE_CONFIGURATION_TYPES "Wrong

Re: [CMake] mingw32 linker line exceeds win32 limitations

2007-12-20 Thread Felix Obenhuber
On Do, 2007-12-20 at 12:41 -0500, Brad King wrote: > Please submit an issue > to the bug tracker and send me the bug number. Thanks a lot for your help. I'll do tmorrow! Wish you a nice time! Cheers, Felix ___ CMake mailing list CMake@cmake.org htt

Re: [CMake] mingw32 linker line exceeds win32 limitations

2007-12-20 Thread Brad King
Felix Obenhuber wrote: > On Do, 2007-12-20 at 12:12 -0500, Brad King wrote: >> Felix Obenhuber wrote: >> CMake uses a "link script" approach to avoid placing the entire link >> line in the makefile. It is enabled on certain generators (including >> MinGW) and used for linking libraries but has not

Re: [CMake] mingw32 linker line exceeds win32 limitations

2007-12-20 Thread Felix Obenhuber
On Do, 2007-12-20 at 12:12 -0500, Brad King wrote: > Felix Obenhuber wrote: > CMake uses a "link script" approach to avoid placing the entire link > line in the makefile. It is enabled on certain generators (including > MinGW) and used for linking libraries but has not been yet needed for > execut

[CMake] Getting configuration information

2007-12-20 Thread Fernando Cacciola
Hi, I need to "assemble" the name of the output library based on certain parameters mostly dependent on the build type (configuration): * has debug information * has diagnostics (trace, etc) * optimize for size/speed * is multihreading supported * the RTL to use is statis or dynamic .. and po

[CMake] CMAKE_CONFIG_POSTFIX vs GET_TARGET_PROPERTY(FILE foo LOCATION)

2007-12-20 Thread Josef Karthauser
Am I going mad? (could be, it was the office party last night). I want to add a '_d' to the end of debug libraries, which it appears that I can do using something like: SET(CMAKE_DEBUG_WIN32_POSTFIX "_d" CACHE INTERNAL "Postfix for debug library names" FORCE) Later deep in some macros t

Re: [CMake] mingw32 linker line exceeds win32 limitations

2007-12-20 Thread Brad King
Felix Obenhuber wrote: > Dear CMake developer and users, > > I've encountered some probs with a an issue whitch already raised last > year in the a post [1]. > > Mingw32-make (5.1.3) minds about a too long linker line. The project > makes use of CMake for Makefile Generation, that's why I tend to

Re: [CMake] ADD_SUBDIRECTORY

2007-12-20 Thread George Neill
Hi Brandon, > Because having a subdirectory doesn't imply that you're going to do > anything there. It could just be an intermediate part of your source > tree. Perhaps the CMakeLists.txt in that subdirectory merely contains > more ADD_SUBDIRECTORY commands. In the example I provided, I tried t

Re: [CMake] Re: MSVC turn off RelWithDebInfo and MinSizeRel

2007-12-20 Thread David Cole
What do you mean? Do you get an error message? If so, send along the text of the error... Thanks, David Cole On 12/20/07, Fernando Cacciola <[EMAIL PROTECTED]> wrote: > > David Cole wrote: > > >> How about this in the CMakeLists.txt file instead? (Force it into the > >> cache > >> rather than us

[CMake] Re: MSVC turn off RelWithDebInfo and MinSizeRel

2007-12-20 Thread Fernando Cacciola
David Cole wrote: How about this in the CMakeLists.txt file instead? (Force it into the cache rather than using a simple set.) SET(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "limited configs" FORCE) The generator rejects it. -- Fernando Cacciola SciSoft http://fcacciola.50webs

RE: [CMake] MSVC turn off RelWithDebInfo and MinSizeRel

2007-12-20 Thread Josef Karthauser
We do something like this: MACRO(ADD_CONFIGURATION CONFIGURATION PLATFORM COMPILER_FLAGS LINKER_FLAGS) # The configuration label we use internally the platform appended on it. SET( CONFIG_LABEL "${CONFIGURATION}_${PLATFORM}" ) SET( "${CONFIG_LABEL}_PLATFORM" ${PLATFORM} CACHE STR

Re: [CMake] MSVC turn off RelWithDebInfo and MinSizeRel

2007-12-20 Thread David Cole
I will see if I can find / figure out what I did to make this work -- I know I've done it before to eliminate all but one config type... How about this in the CMakeLists.txt file instead? (Force it into the cache rather than using a simple set.) SET(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE S

Re: [CMake] Re: Bug with cmake's `--debug-trycompile' option?

2007-12-20 Thread Bill Hoffman
Clark J. Wang wrote: Debugging options are used for debugging, that's right. But I don't agree that CMake can give wrong results when run in debug mode. Take the `--debug-trycompile' option for example, CMake can leave separate build/source files with different filenames in the temp director

Re: [CMake] mingw32 linker line exceeds win32 limitations

2007-12-20 Thread Arjen Markus
Felix Obenhuber wrote: Dear CMake developer and users, I've encountered some probs with a an issue whitch already raised last year in the a post [1]. Mingw32-make (5.1.3) minds about a too long linker line. The project makes use of CMake for Makefile Generation, that's why I tend to ask here w

[CMake] mingw32 linker line exceeds win32 limitations

2007-12-20 Thread Felix Obenhuber
Dear CMake developer and users, I've encountered some probs with a an issue whitch already raised last year in the a post [1]. Mingw32-make (5.1.3) minds about a too long linker line. The project makes use of CMake for Makefile Generation, that's why I tend to ask here whether someone found a sol

RE: [CMake] MSVC turn off RelWithDebInfo and MinSizeRel

2007-12-20 Thread Josef Karthauser
Yeah, that's a pain. I recently submitted a bug fix which allows configurations other than these stock four to be used, however sometimes these stock four get added in addition, and sometimes they're not. I've not managed to determine where or why. It's my understanding that the MSVC configur

RE: [CMake] MSVC turn off RelWithDebInfo and MinSizeRel

2007-12-20 Thread Torsten Martinsen
Unfortunately, this does not work. I just tried adding SET(CMAKE_CONFIGURATION_TYPES "Debug;RelWithDebInfo") at the top of my CMakeLists.txt, then deleted my build tree and ran cmake. The generated project files still contain Debug, Release, MinSizeRel and RelWithDebInfo. -Torsten