[CMake] Strange behaviour of FindCurses.cmake (and cmake 2.6.0?)
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Thu May 8 01:58:50 EDT 2008
Hi,
when curses is searched twice, the second search fails:
---------------------8<----------------
message(STATUS "CURSES_HAVE_CURSES_H: ${CURSES_HAVE_CURSES_H}")
message(STATUS "CURSES_INCLUDE_PATH: ${CURSES_INCLUDE_PATH}")
FIND_PACKAGE(Curses REQUIRED)
message(STATUS "CURSES_HAVE_CURSES_H: ${CURSES_HAVE_CURSES_H}")
message(STATUS "CURSES_INCLUDE_PATH: ${CURSES_INCLUDE_PATH}")
FIND_PACKAGE(Curses REQUIRED)
message(STATUS "CURSES_HAVE_CURSES_H: ${CURSES_HAVE_CURSES_H}")
message(STATUS "CURSES_INCLUDE_PATH: ${CURSES_INCLUDE_PATH}")
---------------------8<----------------
gives this output:
---------------------8<----------------
-- CURSES_HAVE_CURSES_H:
-- CURSES_INCLUDE_PATH:
-- Found Curses: /usr/lib64/libncurses.so
-- CURSES_HAVE_CURSES_H: /usr/include/curses.h
-- CURSES_INCLUDE_PATH: /usr/include
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:52 (MESSAGE):
Could NOT find Curses
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindCurses.cmake:104 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:8 (FIND_PACKAGE)
---------------------8<----------------
Any ideas what's going wrong here? I think it worked fine with 2.4.8 but can't test it atm.
Christian
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx
More information about the CMake
mailing list