Re: CMAKE_PREFIX_PATH and /usr/local

2021-01-16 Thread Tomasz CEDRO
On Sat, Jan 16, 2021, 10:11 Gleb Popov wrote: > The correct fix is to call find_package(OpenGL) and then use variables it > sets. > We got into the same conclusion on GitHub, this find_package for gl stuff is missing, so this must be the correct way to go, I'll fix the fix that way :-) :-) Thank

Re: CMAKE_PREFIX_PATH and /usr/local

2021-01-16 Thread Gleb Popov
On Sat, Jan 16, 2021 at 12:17 AM Tomasz CEDRO wrote: > On Fri, Jan 15, 2021 at 10:05 AM Gleb Popov wrote: > > On Fri, Jan 15, 2021 at 12:50 AM Tomasz CEDRO wrote: > >> Hello world :-) > >> I am porting LimeSuite to FreeBSD. Local patch fixes missing > >> "/usr/local/" path in CMakeLists.txt so th

Re: CMAKE_PREFIX_PATH and /usr/local

2021-01-15 Thread Dave Horsfall
On Fri, 15 Jan 2021, Gleb Popov wrote: +if (CMAKE_SYSTEM_NAME MATCHES "BSD") +include_directories("/usr/local/include") This is most certainly a wrong thing to do. Instead of simply adding -I/usr/local/include everywhere, you should fix problems for each dependency that the software requ

Re: CMAKE_PREFIX_PATH and /usr/local

2021-01-15 Thread Tomasz CEDRO
On Fri, Jan 15, 2021 at 10:05 AM Gleb Popov wrote: > On Fri, Jan 15, 2021 at 12:50 AM Tomasz CEDRO wrote: >> Hello world :-) >> I am porting LimeSuite to FreeBSD. Local patch fixes missing >> "/usr/local/" path in CMakeLists.txt so the package now builds fine on >> FreeBSD. On Linux probably most o

Re: CMAKE_PREFIX_PATH and /usr/local

2021-01-15 Thread Gleb Popov
On Fri, Jan 15, 2021 at 12:50 AM Tomasz CEDRO wrote: > Hello world :-) > > I am porting LimeSuite to FreeBSD. Local patch fixes missing > "/usr/local/" path in CMakeLists.txt so the package now builds fine on > FreeBSD. On Linux probably most of the libraries and includes are > located in /usr/ d