Mercurial > irccd
comparison plugins/CMakeLists.txt @ 101:113d909fdfe1
CMake: disallow absolute paths, #389
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 25 Apr 2016 21:16:47 +0200 |
parents | b3e0050463bf |
children | ff26bd33a45d |
comparison
equal
deleted
inserted
replaced
100:a3814665a60d | 101:113d909fdfe1 |
---|---|
30 # 1. Configure the plugin and install it. | 30 # 1. Configure the plugin and install it. |
31 irccd_define_plugin(${plugin}/${plugin}.js) | 31 irccd_define_plugin(${plugin}/${plugin}.js) |
32 | 32 |
33 # 2. Build documentation. | 33 # 2. Build documentation. |
34 if (WITH_HTML) | 34 if (WITH_HTML) |
35 if (IRCCD_RELOCATABLE) | 35 set(basedocdir ${IRCCD_FAKEROOTDIR}/${WITH_DOCDIR}) |
36 set(basedocdir ${CMAKE_BINARY_DIR}/fakeroot/${WITH_DOCDIR}) | |
37 else () | |
38 set(basedocdir ${CMAKE_BINARY_DIR}/docs) | |
39 endif () | |
40 | 36 |
41 file(RELATIVE_PATH baseurl ${basedocdir}/plugin ${basedocdir}) | 37 file(RELATIVE_PATH baseurl ${basedocdir}/plugin ${basedocdir}) |
42 | 38 |
43 pandoc( | 39 pandoc( |
44 OUTPUT ${basedocdir}/plugin/${plugin}.html | 40 OUTPUT ${basedocdir}/plugin/${plugin}.html |