Skip to content
Snippets Groups Projects
Commit 0717916a authored by Christian Engwer's avatar Christian Engwer
Browse files

[latex][bugfix][win32][cmake] ignore CMAKE_FIND_ROOT_PATH for latexmkrc.cmake

When cross compiling for windows it is necessary to tweak
CMAKE_FIND_ROOT_PATH_MODE_* to modify default behavior of FIND_XXX()
commands to search for headers/libs in the target environment and
search for programs in the build host environment.

This lead to a problem when searching for latexmkrc.cmake.

We now explicitly change the UseLatexMk find_file call to ignore the
CMAKE_FIND_ROOT_PATH and thus beeing able to find the file in the
source directory.
parent 0133f896
No related branches found
No related tags found
1 merge request!740[latex][bugfix][win32][cmake] ignore CMAKE_FIND_ROOT_PATH for latexmkrc.cmake
Pipeline #23244 passed
......@@ -114,6 +114,7 @@ find_file(LATEXMKRC_TEMPLATE
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/cmake
${CMAKE_SOURCE_DIR}/cmake/modules
NO_CMAKE_FIND_ROOT_PATH
)
# Add the clean_latex target
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment