瀏覽代碼

fixes gh-2753 Fixed error generating second pdf file created from single cmake file.

When TARG is being set by the macro RUN_XSTLPROC it is being set on the global scope for the current cmake file instead of in the local scope of the macro. This is causing an issue where the second call to make a pdf which calls RUN_XSLTPROC sees the variable as set if it was set on the first run.

Signed-off-by: Philip Schwartz <philip.schwartz@lexisnexis.com>
Philip Schwartz 13 年之前
父節點
當前提交
a2fc325855
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      cmake_modules/docMacros.cmake

+ 1 - 0
cmake_modules/docMacros.cmake

@@ -1,6 +1,7 @@
 
 MACRO(RUN_XSLTPROC _xsl _file _out _in_dir _out_dir )
 	PARSE_ARGUMENTS(_XSLT "" "" ${ARGN})
+	SET(TARG "")
 	LIST(LENGTH _XSLT_DEFAULT_ARGS _XSLT_LEN)
 	if( _XSLT_LEN )
 		LIST(GET _XSLT_DEFAULT_ARGS 0 TARG)