From 3bb582e450ece1d17a8ab087c8e73da4b6ea3d68 Mon Sep 17 00:00:00 2001 From: Simon Praetorius Date: Thu, 8 Apr 2021 20:02:06 +0000 Subject: [PATCH] Replace CMAKE_SOURCE_DIR by PROJECT_SOURCE_DIR --- UseLatexMk.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UseLatexMk.cmake b/UseLatexMk.cmake index e015713..267b868 100644 --- a/UseLatexMk.cmake +++ b/UseLatexMk.cmake @@ -112,9 +112,9 @@ find_file(LATEXMKRC_TEMPLATE latexmkrc.cmake HINTS ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_SOURCE_DIR} - ${CMAKE_SOURCE_DIR}/cmake - ${CMAKE_SOURCE_DIR}/cmake/modules + ${PROJECT_SOURCE_DIR} + ${PROJECT_SOURCE_DIR}/cmake + ${PROJECT_SOURCE_DIR}/cmake/modules NO_CMAKE_FIND_ROOT_PATH ) @@ -146,7 +146,7 @@ function(add_latex_document) if(NOT LMK_TARGET) # Construct a nice target name from the source file get_filename_component(LMK_TARGET ${LMK_SOURCE} ABSOLUTE) - file(RELATIVE_PATH LMK_TARGET ${CMAKE_SOURCE_DIR} ${LMK_TARGET}) + file(RELATIVE_PATH LMK_TARGET ${PROJECT_SOURCE_DIR} ${LMK_TARGET}) string(REPLACE "/" "_" LMK_TARGET ${LMK_TARGET}) string(REPLACE "." "_" LMK_TARGET ${LMK_TARGET}) endif()