Re: [CMake] Problem using cmake with mingw

2007-03-24 Thread Hendrik Sattler
Am Samstag 24 März 2007 20:29 schrieb Christian Ehrlicher: > But the log shows another problem - mingw can not use MS PSDK headers. That's not completely true. For some particular headers that have things that mingw does not provide (e.g. the bluetooth stuff), you can copy them and use them as-i

Re: [CMake] INCLUDE_DIRECTORIES oddity

2007-03-24 Thread Alan W. Irwin
Hello, I'm experiencing an odd behaviour of the INCLUDE_DIRECTORY command. Here's the relevant code: INCLUDE(UsePkgConfig) FOREACH(library sdl libpng freetype2) PKGCONFIG(${library} INC LIB LD C) IF(C) INCLUDE_DIRECTORIES(${C}) TARGET_LINK_LIBRARIES(wowtris ${LD}) ELSE(C) MESSAG

Re: [CMake] Problem using cmake with mingw

2007-03-24 Thread Christian Ehrlicher
Bill Hoffman schrieb: Claudiu-Daniel wrote: I'm trying to compile OIS with cmake I've managed to do this with a VS 2005 solution generated by cmake and it works fine but when i try to do it with a mingw makefile I get this error D:\ScatteredLands\Project\trunk\buildgcc>mingw32-make Scanning

Re: [CMake] Problem using cmake with mingw

2007-03-24 Thread Bill Hoffman
Claudiu-Daniel wrote: I'm trying to compile OIS with cmake I've managed to do this with a VS 2005 solution generated by cmake and it works fine but when i try to do it with a mingw makefile I get this error D:\ScatteredLands\Project\trunk\buildgcc>mingw32-make Scanning dependencies of target

Re: [CMake] INCLUDE_DIRECTORIES oddity

2007-03-24 Thread Salvatore Iovene
On Sat, 24 Mar 2007 07:56:21 -0700 "Brandon J. Van Every" <[EMAIL PROTECTED]> wrote: > Salvatore Iovene wrote: > > > > Am I doing something obviously wrong? > > > > Using an older version of CMake when making a bug report? :-) I'm not filing a bug report, as nowhere I alleged this would be a

Re: [CMake] INCLUDE_DIRECTORIES oddity

2007-03-24 Thread Brandon J. Van Every
Salvatore Iovene wrote: Am I doing something obviously wrong? Using an older version of CMake when making a bug report? :-) My cmake version is 2.4-patch 5. See if it's a problem with 2.4.6. Cheers, Brandon Van Every ___ CMake mailing li

[CMake] INCLUDE_DIRECTORIES oddity

2007-03-24 Thread Salvatore Iovene
Hello, I'm experiencing an odd behaviour of the INCLUDE_DIRECTORY command. Here's the relevant code: INCLUDE(UsePkgConfig) FOREACH(library sdl libpng freetype2) PKGCONFIG(${library} INC LIB LD C) IF(C) INCLUDE_DIRECTORIES(${C}) TARGET_LINK_LIBRARIES(wowtris ${LD}) ELSE(C) MESSAGE

Re: [CMake] LINK_LIBRARIES() does not respect SUFFIX/PREFIX

2007-03-24 Thread Peter Visser
Great! A while ago I tried to cross-compile code for win32 with mingw from linux and ran into the same problem with the library PREFIX and SUFFIX. Setting the PREFIX and SUFFIX globally works great, cross-compiling now works good for my project (and much faster than the native compile with mingw