Absolute path to files
Hello,
There is an issue that the absolute paths to files are not handled correctly.
Look at this example:
cmake_minimum_required(VERSION 3.25)
project(doc NONE)
include("deps/deps.cmake")
add_latex_document(${PROJECT_SOURCE_DIR}/pres.tex
INPUTS ${PROJECT_SOURCE_DIR}/pres.tex
)
Error at configure time:
-- Downloading CPM.cmake to /tools/work/tests/latex/uselatex_issue/build/cmake/CPM_0.38.1.cmake
-- CPM: Adding package UseLatex@ (command-line-options)
-- Found LATEX: /usr/bin/latex
-- Found UnixCommands: /usr/bin/bash
-- I could not find the biber command.
Could not find input file /tools/work/tests/latex/uselatex_issue//tools/work/tests/latex/uselatex_issue/pres.tex
Could not find input file /tools/work/tests/latex/uselatex_issue//tools/work/tests/latex/uselatex_issue/pres.tex
-- Disabling HTML build for pres.tex because the main file is in subdirectory /tools/work/tests/latex/uselatex_issue
-- Configuring done (2.5s)
-- Generating done (0.0s)
-- Build files have been written to: /tools/work/tests/latex/uselatex_issue/build
And error at build time:
make[2]: *** No rule to make target 'tools/work/tests/latex/uselatex_issue/pres.tex', needed by 'pres.pdf'. Stop.
make[1]: *** [CMakeFiles/Makefile2:251: CMakeFiles/pres_pdf.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Here is the full example uselatex_issue.tar.gz