소스 검색

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)