Re: [CMake] A iconv check cmake file

2007-10-20 Thread Hendrik Sattler
Am Freitag 19 Oktober 2007 schrieb eddy xu: I have not found one module to find iconv library in cmake, so I wrote one, here is the code: # Find iconv library # # Author: Eddy Xu [EMAIL PROTECTED] # # Released under BSD license # # ICONV_INCLUDE_DIRS - where to find iconv.h, etc #

Re: [CMake] CMake2.5 - wrong default install location for mingw

2007-10-20 Thread Gonzalo Garramuño
Bill Hoffman wrote: Not really true, cygwin has its own symlinks. See here: http://www.cygwin.com/cygwin-ug-net/using.html That's not a symlink. That's a mount point. And it does not effect anything I said. Just try putting such a mount point on PATH (which is special). It will get

Re: [CMake] CMake2.5 - wrong default install location for mingw

2007-10-20 Thread Andreas Pakulat
On 20.10.07 06:17:56, Gonzalo Garramuño wrote: Andreas Pakulat wrote: But exactly that is not supposed to happen. Why not? Maybe I was not clear: Or maybe I didn't read that part of the thread :) cmake2.5 has a MSYS Makefile generator. Aah, ok. I take back all I said. The MSYS Makefile

[CMake] defining preprocessor statements

2007-10-20 Thread Mark Wyszomierski
Hi, How do we define a preprocessor statement - in win32 projects you usually need to see the following in the C/C++ - Preprocessor statements section: _WIN32, _WINDOWS ...etc so in the CMakeLists.txt, what syntax is used to put that into the generated project files? Thanks, Mark

Re: [CMake] defining preprocessor statements

2007-10-20 Thread Stefan Buschmann
Use ADD_DEFINITIONS: ADD_DEFINITIONS(-DWIN32 -DWINDOWS) - Stefan Mark Wyszomierski schrieb: Hi, How do we define a preprocessor statement - in win32 projects you usually need to see the following in the C/C++ - Preprocessor statements section: _WIN32, _WINDOWS ...etc so in the

Re: [CMake] defining preprocessor statements

2007-10-20 Thread Mark Wyszomierski
Thanks Stefan. When I do that, I see the following text in the Preprocessor Definitions field (in vc++ 2005): ,WIN32,WINDOWS, I'm wondering if the leading and trailing commas will be a problem? Thanks, Mark On 10/20/07, Stefan Buschmann [EMAIL PROTECTED] wrote: Use ADD_DEFINITIONS:

Re: [CMake] CMake2.5 - wrong default install location for mingw

2007-10-20 Thread Gonzalo Garramuño
Bill Hoffman wrote: But hey CMake is open source, you can always add the code you want by yourself. Here it is... I put some questions in the comments as I'm not that familiar with the subtleties of some cmake's commands. You probably want to clean it up. Took me too long to write (love

[CMake] using icu-config (or any other)

2007-10-20 Thread Mathias Baumann
Hi there, I got a lib (icu), this lib provides also a icu-config script/binary which tells me the compiler/linker flags.. So i can use icu-config --ldflags to find out the parameter for the linker. And here comes the problem. How can i either pass these parameters to the linker, or extract

Re: [CMake] CMake2.5 - wrong default install location for mingw

2007-10-20 Thread Bill Hoffman
Gonzalo Garramuño wrote: Bill Hoffman wrote: But hey CMake is open source, you can always add the code you want by yourself. Here it is... I put some questions in the comments as I'm not that familiar with the subtleties of some cmake's commands. You probably want to clean it up. Took me

Re: [CMake] using icu-config (or any other)

2007-10-20 Thread Brandon Van Every
On 10/20/07, Mathias Baumann [EMAIL PROTECTED] wrote: Hi there, I got a lib (icu), this lib provides also a icu-config script/binary which tells me the compiler/linker flags.. So i can use icu-config --ldflags to find out the parameter for the linker. And here comes the problem. How can i

Re: [CMake] CMake2.5 - wrong default install location for mingw

2007-10-20 Thread Brandon Van Every
On 10/19/07, Gonzalo Garramuño [EMAIL PROTECTED] wrote: Brandon Van Every wrote: Agreed, having gone through this debate awhile ago. I would further note that MinGW doesn't require MSYS, and that one would of course expect %ProgramFiles% as the default in that case. Adding MSYS

Re: [CMake] CMake2.5 - wrong default install location for mingw

2007-10-20 Thread Brandon Van Every
On 10/19/07, Gonzalo Garramuño [EMAIL PROTECTED] wrote: a) All unix autotools utilities (or other libs like ffmpeg) built under mingw/msys will not install in $PROGRAMFILES, which leads to cmake's approach being totally backwards with the rest of msys. Actually, last I checked 2+ years ago, I

Re: [CMake] using icu-config (or any other)

2007-10-20 Thread Mathias Baumann
The problem is only how to pass the parameters to the linker.. add_custom_command does not help me in passing sth to the linker, or am i wrong here? On 10/20/07, Mathias Baumann [EMAIL PROTECTED] wrote: Hi there, I got a lib (icu), this lib provides also a icu-config script/binary which

Re: [CMake] FindImageMagick: Rewrite to support all utilities.

2007-10-20 Thread Miguel A. Figueroa-Villanueva
On 10/19/07, Alex Neundorf wrote: On Thursday 18 October 2007 21:25, Miguel A. Figueroa-Villanueva wrote: On 10/14/07, Alex Neundorf wrote: On Saturday 13 October 2007 07:17, Miguel A. Figueroa-Villanueva wrote: Hello, I've been assigned the task of maintaining the ImageMagick

Re: [CMake] using icu-config (or any other)

2007-10-20 Thread Alan W. Irwin
On 2007-10-20 22:26+0200 Mathias Baumann wrote: Hi there, I got a lib (icu), this lib provides also a icu-config script/binary which tells me the compiler/linker flags.. So i can use icu-config --ldflags to find out the parameter for the linker. And here comes the problem. How can i either

Re: [CMake] Patch for Eclipse generator

2007-10-20 Thread Pau Garcia i Quiles
Quoting [EMAIL PROTECTED]: Hi, On Friday 19 October 2007 01:18, Pau Garcia i Quiles wrote: Hello, As I told yesterday, here comes a patch for the Eclipse CDT4 generator available in the current CVS version of CMake. Although I have not extensively tested it, the works fine. In addition to

[CMake] Possible change in Modules/readme.txt: XXX_EXECUTABLE_DIR or XXX_ROOT_DIR

2007-10-20 Thread Miguel A. Figueroa-Villanueva
Hello, In a previous thread discussion (http://www.cmake.org/pipermail/cmake/2007-October/017020.html) the following issue arose and I'm asking this as a separate thread so it can be noticed; as suggested by Alex. There is a variable that I'm using named ImageMagick_EXECUTABLE_DIR. Initially I

Re: [CMake] including paths - basic

2007-10-20 Thread Mark Wyszomierski
Hi Mike, When I try CMAKE_BUILD_TYPE MATCHES Debug, it seems to never execute the contents of that IF statement (as if I am never CMake'ing a DEBUG build?). I don't know if CMAKE_BUILD_TYPE is the same thing as what's in the CMAKE_CONFIGURATION_TYPES field. I really need something like: IF

[CMake]: Patch for FIND_PACKAGE_HANDLE_STANDARD_ARGS

2007-10-20 Thread Miguel A. Figueroa-Villanueva
I have created a feature request #5920 for the following issue. I won't apply the changes myself unless I'm assigned the feature, since I don't want to abuse my cvs modules access. On 10/19/07, Alex Neundorf wrote: On Thursday 18 October 2007 21:25, Miguel A. Figueroa-Villanueva wrote: -

[CMake] Need FindwxWidgets OSX tester for bug 5007

2007-10-20 Thread Miguel A. Figueroa-Villanueva
Hello, There is a bug 5007 (http://www.cmake.org/Bug/view.php?id=5007) to which I think I have a patch for solving the issue, but I don't have an OSX platform available for testing. I was going to apply the patch since it seems pretty straight forward, but I'm inclined to wait until somebody