[CMake] Unexpected find_path() result
Pere Mato Vila
Pere.Mato at cern.ch
Mon Jun 20 11:44:33 EDT 2011
I am on a MaxOSX system with cmake version 2.8.4 and I am having problems with find_project(x11). I have narrowed the problem with a very simple test. The following lines as top level CMakeLists.txt file
cmake_minimum_required(VERSION 2.8)
find_path(X11_Xft_INCLUDE_PATH X11/Xft/Xft.h /usr/X11R6/include)
message("X11_Xft_INCLUDE_PATH ${X11_Xft_INCLUDE_PATH}")
give me as answer:
Re-run cmake no build system arguments
-- The C compiler identification is GNU
...
X11_Xft_INCLUDE_PATH /usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mato/Development/ROOT/testcase
Which is not what I am expecting. While executing it as cmake -P CMakeLists.txt gives me the correct answer.
X11_Xft_INCLUDE_PATH /usr/X11R6/include
Does anybody has any idea why is this possible and whether there is a workaround. Thanks very much.
-------------------------------------------------------------
Pere Mato CERN, PH Department, CH 1211 Geneva 23, Switzerland
e-mail: pere.mato at cern.ch tel: +41 22 76 78696
fax: +41 22 76 68792 gsm: +41 76 48 70855
More information about the CMake
mailing list