[CMake] cmake 2.4.1 FIND_PATH
frederic heem
frederic.heem at telsey.it
Wed Jun 7 11:33:48 EDT 2006
Hi,
After switching from 2.2 to 2.4, my application didn't behave correctly, the
root of the problem is a change in FIND_PATH work. Here one of this:
FIND_PATH(PWLIB_INCLUDE_DIR ptlib.h
$ENV{PWLIBDIR}/include
/usr/include
)
cmake always takes /usr/local/include/ptlib.h, which is not the one desired,
it shall take $ENV{PWLIBDIR}/include/ptlib.h if any
A workaround is to set to have add NO_DEFAULT_PATH like this
FIND_PATH(PWLIB_INCLUDE_DIR ptlib.h
$ENV{PWLIBDIR}/include
/usr/include
NO_DEFAULT_PATH
)
Is there any reason why cmake searches first default directory and then user
defined ones ? It is more logical to have this opposite and it also preserves
backward compatibility.
Regards.
--
***** ----- ***** ----- *****
Frederic Heem
Software Designer
R&D - Telsey SpA Telecommunications
Viale Industria, 1
31055 Quinto di Treviso (TV)
ITALY
Tel. direct phone: (+39) 0422 377819
Tel. (+39) 0422 377711
Fax. (+39) 0422 470920
website ==> www.telsey.it
More information about the CMake
mailing list