Skip to content

Commit

Permalink
doc: Set -dNOSAFER environment for ghostscript
Browse files Browse the repository at this point in the history
This fixes issues when using LaTeX in doxygen
  • Loading branch information
phako committed Aug 26, 2021
1 parent d76ff19 commit 6207574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/enable_doxygen_documentation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if(DOXYGEN_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)

add_custom_target(doc ${DOC_DEPENDENCY}
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
COMMAND ${CMAKE_COMMAND} -E env GS_OPTIONS=-dNOSAFER ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
#note the / after ${CMAKE_BINARY_DIR}/doc/. This causes the directory to be renamed to the destination, not copied into
Expand Down

0 comments on commit 6207574

Please sign in to comment.