[CMake] RE: UseLATEX.cmake macros

David Cole david.cole at kitware.com
Wed Apr 26 08:30:30 EDT 2006


Why are you setting "CMAKE_CURRENT_BINARY_DIR"? CMake sets that variable 
for you...

Does the same thing happen if you take out the 
SET(CMAKE_CURRENT_BINARY_DIR... line?


Bertrand Jacquin wrote:

>On 4/21/06, Moreland, Kenneth <kmorel at sandia.gov> wrote:
>  
>
>>>>I got the
>>>>CMakeLists.txt in question and tried it out.  Apart from
>>>>        
>>>>
>>>adding the
>>>      
>>>
>>>>.cmake extension to the file in the INCLUDE command,
>>>>        
>>>>
>>>everything worked
>>>      
>>>
>>>>fine.
>>>>        
>>>>
>>>If a add .cmake to extension, cmake try to find a file called
>>>UseLATEX.cmake.cmake. So, I trashed it.
>>>      
>>>
>>I see.  You put UseLATEX.cmake in some other file and set
>>CMAKE_MODULE_PATH to that directory.  In that case, INCLUDE
>>automatically adds the .cmake extension.  I tried that too, and it
>>worked fine.
>>    
>>
>
>Here is my CMakeLists.txt :
>
>SET(CMAKE_CURRENT_BINARY_DIR bin)
>
>INCLUDE(UseLATEX)
>ADD_LATEX_IMAGES(img)
>ADD_LATEX_DOCUMENT(cahier_des_charges_fonctionnel_fr.tex)
>
>And it failed :(
>
>--
>Beber
>#e.fr at freenode
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake
>
>  
>


More information about the CMake mailing list