Skip to content

Commit

Permalink
docs(m2r): fix IS_NEWER_THAN
Browse files Browse the repository at this point in the history
  • Loading branch information
m6w6 committed Sep 15, 2021
1 parent 3301b2f commit c078856
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c078856

Please sign in to comment.