[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)

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

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 cmake bug.

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)