-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_tex_source unexpectedly inserted into output filenames #12
Comments
I did not encounter what you are reporting. Can you please provide a minimal test case that reproduces your problem? |
The following CMakeLists.txt reproduces the problem:
Prior to fa0376c the above code produced a file called document.pdf as expected. fa0376c and later produce a file called document_tex_source.pdf. |
Thanks for providing the minimal setup. Prior, I tested with a project of my own and could not reproduce it. The issue was there, but I got fooled by CMake's caching. Can you please test #16 and confirm that this fixes your issue? Now you only get an added "_source" if you build in-source (without a dedicated build directory). |
Thanks, it looks like #16 restores the behavior I expected (at least for out-of-source builds, which is what I normally use). |
@dokempf Can you please consider merging this? I am waiting to merge this to dune-common, too. |
Since fa0376c, UseLatexMk has been inserting _tex_source into the names of output files. As far as I can tell this happens with every generated file, regardless of whether the filename was specified with the TARGET argument to add_latex_document or derived from the SOURCE argument.
From the commit message this appears to be a workaround needed to compile LaTeX source that uses the minted package, but in most cases users are expecting the output filenames to be the same as the input file, only with .tex replaced with the output file extension (.pdf, .aux, .ps, .dvi, etc.).
The text was updated successfully, but these errors were encountered: