Re: [CMake] problem with cmake script.

2009-03-09 Thread Adolfo Rodríguez
I was also fooled by that sentence some time ago, but careful reading of what the doc says after "If NO_DEFAULT_PATH is not specified, the search process is as follows:" suggests something different. What I currently do to solve the issue of nonstandard package locations is to use an environment v

Re: [CMake] problem with cmake script.

2009-03-09 Thread Adolfo Rodríguez
Hi Benoit, The documentation of find_pathspecifies the order in which paths are searched. If you want to force the /opt path to be searched first, you should maybe try find_path( NAMES name PATHS ${NONSTANDARD_PATHS} NO_DEFAULT_

Re: [CMake] problem with cmake script.

2009-03-09 Thread Eric Noulard
2009/3/9 Benoit : > Hello, > > I'm having some trouble to use a cmake script correctly and i don't know > why. [...] > > Does anyone know why the result of > OpenCV_HIGHGUI_INCLUDE_DIR=/usr/include/opencv and not > /opt/opencv/1.1.0/include/opencv > even if both files /opt/opencv/1.1.0/include/ope

[CMake] problem with cmake script.

2009-03-09 Thread Benoit
Hello, I'm having some trouble to use a cmake script correctly and i don't know why. The cmake script come from the openCV library (you can find it here: http://opencv.willowgarage.com/wiki/Getting_started?action=AttachFile&do=get&target=FindOpenCV.cmake) and it search for include and library file