From: Michael Wallner Date: Wed, 15 Sep 2021 11:41:01 +0000 (+0200) Subject: docs(m2r): fix IS_NEWER_THAN X-Git-Tag: 1.1.1~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c07885689129632979b2ec1d5b21d5d341ff9abc;p=awesomized%2Flibmemcached docs(m2r): fix IS_NEWER_THAN --- diff --git a/docs/source/CMakeLists.txt b/docs/source/CMakeLists.txt index 134c8eb5..6b84c94e 100644 --- a/docs/source/CMakeLists.txt +++ b/docs/source/CMakeLists.txt @@ -7,6 +7,12 @@ function(DefaultRstPath MDFILE RSTFILE_VAR) endfunction() function(UpdateRstFromMd RSTFILE MDFILE) + if(NOT IS_ABSOLUTE ${MDFILE}) + set(MDFILE ${CMAKE_CURRENT_SOURCE_DIR}/${MDFILE}) + endif() + if (NOT IS_ABSOLUTE ${RSTFILE}) + set(RSTFILE ${CMAKE_CURRENT_SOURCE_DIR}/${RSTFILE}) + endif() if(${MDFILE} IS_NEWER_THAN ${RSTFILE}) message("-- Processing ${MDFILE} ...") execute_process(