<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<div><font face="Tahoma" size="2">Hello,</font></div><div><font face="Tahoma" size="2"><br></font></div><div><span style="font-family: Tahoma; font-size: 10pt; ">I'm having trouble getting FIND_PATH to work in a certain case. I have it working in other Find*.cmake files, but in one of my files I cannot seem to get it to cooperate and cmake --trace/--debug-output don't seem to provide any useful information for debugging FIND_PATH.</span></div><div><span style="font-family: Tahoma; font-size: 10pt; "><br></span></div><div><span style="font-family: Tahoma; font-size: 10pt; ">The problem is that cmake generates a "NOTFOUND" error when using the following cmake file (</span><span style="font-family: Tahoma; font-size: 13px; ">DEV_ROOT is set to /home/jlk/dev):</span></div><div><font face="Tahoma" size="2"><br></font></div><div><font face="Tahoma" size="2">FindTinyXML.cmake:</font></div><div><font face="Tahoma" size="2"><br></font></div><div><span style="font-family: Tahoma; font-size: 10pt; ">FIND_PATH( TinyXML_INCLUDE_DIRS</span></div><div><font face="Tahoma" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAMES &nbsp; tinyxml.h</font></div><div><font face="Tahoma" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PATHS &nbsp; $ENV{DEV_ROOT}/externals/tinyxml )</font></div><div><font face="Tahoma" size="2"><br></font></div><div><font face="Tahoma" size="2">MESSAGE( STATUS ${TinyXML_INCLUDE_DIRS} )</font></div><div><font face="Tahoma" size="2">MESSAGE( STATUS $ENV{DEV_ROOT}/externals/tinyxml )</font></div><div><font face="Tahoma" size="2"><br></font></div><div><font face="Tahoma" size="2">FIND_LIBRARY( TinyXML_LIBRARY_Debug</font></div><div><font face="Tahoma" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAMES &nbsp; tinyxml</font></div><div><font face="Tahoma" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PATHS &nbsp; $ENV{DEV_ROOT}/externals/tinyxml/Debug )</font></div><div><font face="Tahoma" size="2"><br></font></div><div><font face="Tahoma" size="2">FIND_LIBRARY( TinyXML_LIBRARY_Release</font></div><div><font face="Tahoma" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAMES &nbsp; tinyxml</font></div><div><font face="Tahoma" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PATHS &nbsp; $ENV{DEV_ROOT}/externals/tinyxml/Release )</font></div><div><font face="Tahoma" size="2"><br></font></div><div><font face="Tahoma" size="2">SET( TinyXML_FOUND FALSE )</font></div><div><font face="Tahoma" size="2"><br></font></div><div><font face="Tahoma" size="2">IF( TinyXML_INCLUDE_DIRS )</font></div><div><font face="Tahoma" size="2">&nbsp; &nbsp; SET( TinyXML_FOUND TRUE )</font></div><div><font face="Tahoma" size="2">&nbsp; &nbsp; SET( TinyXML_LIBRARIES ${TinyXML_LIBRARIES}</font></div><div><font face="Tahoma" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; debug &nbsp; &nbsp; &nbsp; ${TinyXML_LIBRARY_Debug}</font></div><div><font face="Tahoma" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; optimized &nbsp; ${TinyXML_LIBRARY_Release} )</font></div><div><font face="Tahoma" size="2">ENDIF()</font></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; "><div style="font-size: 10pt; ">The two MESSAGE outputs from cmake are:</div><div style="font-size: 10pt; "><br></div><div style="font-family: 'Times New Roman'; font-size: medium; "><div><span style="font-family: Tahoma; font-size: 10pt; ">-- TinyXML_INCLUDE_DIRS-NOTFOUND</span></div><div><font face="Tahoma" size="2">-- /home/jlk/dev/externals/tinyxml</font></div><div><font face="Tahoma" size="2"><br></font></div></div></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">The part I do not understand is if I execute an ls command like so:&nbsp;<span style="font-size: 10pt; ">ls -la /home/jlk/dev/externals/tinyxml/tinyxml.h</span></div><div><div><font face="Tahoma" size="2"><br></font></div><div><font face="Tahoma" size="2">The output I get is:&nbsp;</font><span style="font-family: Tahoma; font-size: 13px; ">-rw-r--r-- 1 jlk jlk 64574 2011-09-27 02:58 /home/jlk/dev/externals/tinyxml/tinyxml.h</span></div></div><div><span style="font-family: Tahoma; font-size: 10pt; "><br></span></div><div><span style="font-family: Tahoma; font-size: 10pt; ">Which, as far as I understand it, is the file that cmake should be looking for. Does anyone know what could be wrong? As I said, I have other Find*.cmake files that work and I just can't seem to spot the problem.</span></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><font face="Tahoma" size="2"><br></font></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div>                                               </div></body>
</html>