projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
3301b2f
)
docs(m2r): fix IS_NEWER_THAN
author
Michael Wallner
<mike@php.net>
Wed, 15 Sep 2021 11:41:01 +0000
(13:41 +0200)
committer
Michael Wallner
<mike@php.net>
Wed, 15 Sep 2021 11:41:01 +0000
(13:41 +0200)
docs/source/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/docs/source/CMakeLists.txt
b/docs/source/CMakeLists.txt
index 134c8eb50105c7c084643533c3886a3284a0ca2e..6b84c94e0446f43cb36a3f72afb0ec138dac033c 100644
(file)
--- 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(