Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-29 Thread Michael Wild
On 29. Jan, 2011, at 3:06 , Óscar Fuentes wrote: > Michael Wild writes: > The point I (and Andreas) wanted to make is that you can just add it. If it's a system directory, CMake is going to filter it out (I didn't say duplicates, I said "doesn't even show up ONCE", which means *z

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-28 Thread Óscar Fuentes
Michael Wild writes: >>> The point I (and Andreas) wanted to make is that you can just add it. If >>> it's a system directory, CMake is going to filter it out (I didn't say >>> duplicates, I said "doesn't even show up ONCE", which means *zero* times). >> >> This is a moot point, because /usr/loc

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-28 Thread Michael Hertling
On 01/28/2011 06:44 AM, Michael Wild wrote: > On 01/27/2011 08:08 PM, Óscar Fuentes wrote: >> Michael Wild writes: >> Okay, cmake removes duplicated directories that already are on the list. So what? First, I hope that cmake does not optimize this series: A B C A

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-28 Thread Michael Wild
On 01/28/2011 09:55 AM, Hendrik Sattler wrote: > Zitat von "Michael Wild" : > >> Now, if you want to mix-and-match, by having this include-path: >> -I/usr/include -I/usr/local/include >> >> (i.e. use /usr/include/foo.h and /usr/local/include/bar.h) you're in >> trouble, because CMake will filter o

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-28 Thread Hendrik Sattler
Zitat von "Michael Wild" : Now, if you want to mix-and-match, by having this include-path: -I/usr/include -I/usr/local/include (i.e. use /usr/include/foo.h and /usr/local/include/bar.h) you're in trouble, because CMake will filter out the /usr/include directory, leaving you with /usr/local/incl

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread Michael Wild
On 01/27/2011 08:08 PM, Óscar Fuentes wrote: > Michael Wild writes: > >>> Okay, cmake removes duplicated directories that already are on the >>> list. So what? >>> >>> First, I hope that cmake does not optimize this series: >>> >>> A B C A >>> >>> ... to this: >>> >>> A B C >>> >>> or to this: >>

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread Óscar Fuentes
Andreas Pakulat writes: > On 27.01.11 20:08:06, Óscar Fuentes wrote: >> Okay, so if I have this: >> >> check_include_file(foo.h HAVE_FOO_H) >> >> and it succeeds, I have no guarantees that a program such as this: >> >> #include "foo.h" >> >> will compile, becasue foo.h may be found on a direc

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread Andreas Pakulat
On 27.01.11 20:08:06, Óscar Fuentes wrote: > Michael Wild writes: > > IMHO you're the one trying to jump through hoops that aren't even there... > > Okay, so if I have this: > > check_include_file(foo.h HAVE_FOO_H) > > and it succeeds, I have no guarantees that a program such as this: > > #inc

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread Óscar Fuentes
Michael Wild writes: >> Okay, cmake removes duplicated directories that already are on the >> list. So what? >> >> First, I hope that cmake does not optimize this series: >> >> A B C A >> >> ... to this: >> >> A B C >> >> or to this: >> >> B C A >> >> Removing adjacent duplicates is fine,

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread Michael Wild
On 01/27/2011 04:49 PM, Óscar Fuentes wrote: > Michael Wild writes: > No, the bug is in your cmake code. You shouldn't use USER_DEFINED_INCLUDE_DIR to decide wether to add the path to the include-directories or not. Instead use the FFI_INCLUDE_PATH variable to decide that, it

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread Óscar Fuentes
Michael Wild writes: >>> No, the bug is in your cmake code. You shouldn't use >>> USER_DEFINED_INCLUDE_DIR to decide wether to add the path to the >>> include-directories or not. Instead use the FFI_INCLUDE_PATH variable to >>> decide that, it won't hurt if FFI_INCLUDE_PATH happens to be /usr/inc

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread Michael Wild
On 01/27/2011 03:53 PM, Óscar Fuentes wrote: > Andreas Pakulat writes: > >> On 27.01.11 16:13:09, arrowdodger wrote: >>> Hello. On FreeBSD everything, that distributes with system goes to /usr (i >>> mean includes go to /usr/includes and libs to /usr/lib) and all 3d party >>> stuff goes to /usr/l

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread Óscar Fuentes
Andreas Pakulat writes: > On 27.01.11 16:13:09, arrowdodger wrote: >> Hello. On FreeBSD everything, that distributes with system goes to /usr (i >> mean includes go to /usr/includes and libs to /usr/lib) and all 3d party >> stuff goes to /usr/local. >> And the compiler is intentionally set to loo

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread Andreas Pakulat
On 27.01.11 16:13:09, arrowdodger wrote: > Hello. On FreeBSD everything, that distributes with system goes to /usr (i > mean includes go to /usr/includes and libs to /usr/lib) and all 3d party > stuff goes to /usr/local. > And the compiler is intentionally set to look only in /usr/include. The same

[CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread arrowdodger
Hello. On FreeBSD everything, that distributes with system goes to /usr (i mean includes go to /usr/includes and libs to /usr/lib) and all 3d party stuff goes to /usr/local. And the compiler is intentionally set to look only in /usr/include. The same is for linker - it's looking for libs only in /u