<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [CMake] RE: UseLATEX.cmake macros</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Well, I am at a loss as to what your problem can be.&nbsp; I am using the same version of cmake and have successfully used UseLATEX.cmake on two different platforms.<BR>
<BR>
Furthermore, the first two errors that you are getting are in part of UseLATEX.cmake that are before any changes that I have made.&nbsp; You were not getting them before, so what happened?&nbsp; Are you sure that you grabbed it from the Wiki correctly?<BR>
<BR>
Before you gave a link to the CMakeLists.txt you were using, but I tried following it and did not see and CMake files.&nbsp; If you fixed that, I might be able to take a look at what you are doing.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Bertrand Jacquin [<A HREF="mailto:beber.mailing@gmail.com">mailto:beber.mailing@gmail.com</A>]<BR>
Sent: Thu 4/20/2006 11:58 AM<BR>
To: Moreland, Kenneth<BR>
Cc: Bertrand Jacquin; cmake@cmake.org; else-devel@gna.org<BR>
Subject: Re: [CMake] RE: UseLATEX.cmake macros<BR>
<BR>
On 4/20/06, Moreland, Kenneth &lt;kmorel@sandia.gov&gt; wrote:<BR>
&gt; The first error is because you are not building out-of-source.&nbsp; The rest<BR>
&gt; of the errors are a mystery to me.&nbsp; I'm not getting them.&nbsp; It looks like<BR>
&gt; CMake is incorrectly resolving a bunch of variables as empty (which<BR>
&gt; would also explain the first error if you really are building<BR>
&gt; out-of-source).&nbsp; What version of CMake are you using?<BR>
<BR>
/mnt/data/src/gaim % cmake --version<BR>
cmake version 2.2-patch 3<BR>
<BR>
<BR>
&gt;<BR>
&gt; -Ken<BR>
&gt;<BR>
&gt; &gt; -----Original Message-----<BR>
&gt; &gt; From: Bertrand Jacquin [<A HREF="mailto:beber.mailing@gmail.com">mailto:beber.mailing@gmail.com</A>]<BR>
&gt; &gt; Sent: Thursday, April 20, 2006 9:36 AM<BR>
&gt; &gt; To: Moreland, Kenneth<BR>
&gt; &gt; Cc: Bertrand Jacquin; cmake@cmake.org; else-devel@gna.org<BR>
&gt; &gt; Subject: Re: [CMake] RE: UseLATEX.cmake macros<BR>
&gt; &gt;<BR>
&gt; &gt; On 4/19/06, Moreland, Kenneth &lt;kmorel@sandia.gov&gt; wrote:<BR>
&gt; &gt; &gt; Beber,<BR>
&gt; &gt; &gt;<BR>
&gt; &gt; &gt; I've posted an update for UseLATEX.cmake on the Wiki that should fix<BR>
&gt; &gt; &gt; your problem.&nbsp; Let me know if you have other issues.<BR>
&gt; &gt;<BR>
&gt; &gt; Thanks,<BR>
&gt; &gt;<BR>
&gt; &gt; But ... cmake failed :<BR>
&gt; &gt;<BR>
&gt; &gt; ~/pfe-cmake % cmake .<BR>
&gt; &gt; -- Check for working C compiler: gcc<BR>
&gt; &gt; -- Check for working C compiler: gcc -- works<BR>
&gt; &gt; -- Check size of void*<BR>
&gt; &gt; -- Check size of void* - done<BR>
&gt; &gt; -- Check for working CXX compiler: c++<BR>
&gt; &gt; -- Check for working CXX compiler: c++ -- works<BR>
&gt; &gt; CMake Error: LaTeX files must be built out of source.<BR>
&gt; &gt; CMake Error: Error in cmake code at<BR>
&gt; &gt; /usr/share/cmake/Modules/UseLATEX.cmake:91:<BR>
&gt; &gt; INCLUDE Could not find include file: /Modules/FindLATEX.cmake<BR>
&gt; &gt; CMake Error: Error in cmake code at<BR>
&gt; &gt; /usr/share/cmake/Modules/UseLATEX.cmake:344:<BR>
&gt; &gt; LATEX_USAGE Macro invoked with incorrect arguments for macro<BR>
&gt; &gt; named: LATEX_USAGE<BR>
&gt; &gt; CMake Error: Error in cmake code at<BR>
&gt; &gt; /home/beber/pfe-cmake/docs/cahier_des_charges/CMakeLists.txt:5:<BR>
&gt; &gt; A command failed during the invocation of macro<BR>
&gt; &gt; &quot;PARSE_ADD_LATEX_ARGUMENTS&quot;.<BR>
&gt; &gt; CMake Error: Error in cmake code at<BR>
&gt; &gt; /usr/share/cmake/Modules/UseLATEX.cmake:478:<BR>
&gt; &gt; PARSE_ADD_LATEX_ARGUMENTS unknown error.<BR>
&gt; &gt; CMake Error: Error in cmake code at<BR>
&gt; &gt; /home/beber/pfe-cmake/docs/cahier_des_charges/CMakeLists.txt:5:<BR>
&gt; &gt; A command failed during the invocation of macro &quot;ADD_LATEX_DOCUMENT&quot;.<BR>
&gt; &gt; CMake Error: Error in cmake code at<BR>
&gt; &gt; /home/beber/pfe-cmake/docs/cahier_des_charges/CMakeLists.txt:5:<BR>
&gt; &gt; ADD_LATEX_DOCUMENT unknown error.<BR>
&gt; &gt; The end of a CMakeLists file was reached with an IF statement that was<BR>
&gt; &gt; not closed properly.<BR>
&gt; &gt; Within the directory: /home/beber/pfe-cmake/docs/cahier_des_charges<BR>
&gt; &gt; The arguments are: LATEX_DEFAULT_ARGS<BR>
&gt; &gt; -- Configuring done<BR>
&gt; &gt; ~/pfe-cmake :( %<BR>
&gt; &gt;<BR>
&gt; &gt; --<BR>
&gt; &gt; Beber<BR>
&gt; &gt; #e.fr@freenode<BR>
&gt; &gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt;<BR>
<BR>
<BR>
--<BR>
Beber<BR>
#e.fr@freenode<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>