Re: [CMake] Preventing search for libraries in random prefixes

2014-06-27 Thread Ben Morgan
Hi Mojca, On 27 June 2014 10:26, Mojca Miklavec wrote: > On Fri, Jun 27, 2014 at 10:42 AM, Angeliki Chrysochou wrote: > > Hi Mojca, > > > > From what I know cmake will look for libraries in the directories > specified > > in link_directories(${LIBRARY_DIRS}) and for headers in the directories >

Re: [CMake] Preventing search for libraries in random prefixes

2014-06-27 Thread Mojca Miklavec
On Fri, Jun 27, 2014 at 11:28 AM, Angeliki Chrysochou wrote: > Hi Mojca, > > I don't know if removing these paths would break your build maybe...I'm > sorry I couldn't help. It wouldn't break my build, but it seems weird and unnatural to do such extensive patching to CMake's Find modules. Mojca -

Re: [CMake] Preventing search for libraries in random prefixes

2014-06-27 Thread Angeliki Chrysochou
Hi Mojca, I don't know if removing these paths would break your build maybe...I'm sorry I couldn't help. Angeliki On Fri, Jun 27, 2014 at 11:26 AM, Mojca Miklavec wrote: > On Fri, Jun 27, 2014 at 10:42 AM, Angeliki Chrysochou wrote: > > Hi Mojca, > > > > From what I know cmake will look for

Re: [CMake] Preventing search for libraries in random prefixes

2014-06-27 Thread Mojca Miklavec
On Fri, Jun 27, 2014 at 10:42 AM, Angeliki Chrysochou wrote: > Hi Mojca, > > From what I know cmake will look for libraries in the directories specified > in link_directories(${LIBRARY_DIRS}) and for headers in the directories > specified in include_directories(${INCLUDE_DIRS}) and the property > I

Re: [CMake] Preventing search for libraries in random prefixes

2014-06-27 Thread Angeliki Chrysochou
Hi Mojca, >From what I know cmake will look for libraries in the directories specified in link_directories(${LIBRARY_DIRS}) and for headers in the directories specified in include_directories(${INCLUDE_DIRS}) and the property INCLUDE_DIRECTORIES. http://www.cmake.org/cmake/help/v2.8.8/cmake.html#

[CMake] Preventing search for libraries in random prefixes

2014-06-26 Thread Mojca Miklavec
Hi, In our package manager where it is of crucial importance to link against the proper library we often end up with hardcoding lots and lots of options, like: -DOPENGL_INCLUDE_DIR=${prefix}/include \ -DX11_ICE_INCLUDE_PATH=${prefix}/include \ -DX11_SM_INCLUDE_PATH=${prefix}/include \ -DX11_X11_I