mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 14:54:35 +00:00
Add an option to build the GLM manual
- Also modify UseLATEX.cmake a bit because CMake is a pain - Add -shell-escape flag, but remove -interaction=nonstopmode flag - I hope this doesn't become a problem
This commit is contained in:
parent
b7e3c1be2b
commit
092dc057f7
@ -12,6 +12,13 @@ enable_testing()
|
||||
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
|
||||
option(GLM_BUILD_MANUAL_ENABLE "Build GLM manual" OFF)
|
||||
if(GLM_BUILD_MANUAL_ENABLE)
|
||||
set(LATEX_OUTPUT_PATH "doc")
|
||||
include(UseLATEX)
|
||||
add_latex_document("doc/glm.tex" TARGET_NAME manual)
|
||||
endif()
|
||||
|
||||
option(GLM_TEST_ENABLE "GLM test" OFF)
|
||||
if(NOT GLM_TEST_ENABLE)
|
||||
message(STATUS "GLM is a header only library, no need to build it. Set the option GLM_TEST_ENABLE with ON to build and run the test bench")
|
||||
|
@ -658,7 +658,8 @@ function(latex_setup_variables)
|
||||
endif()
|
||||
latex_wantit(LATEX2HTML_CONVERTER latex2html)
|
||||
|
||||
set(LATEX_COMPILER_FLAGS "-interaction=nonstopmode"
|
||||
# HACK: Make it easier to actually build the GLM manual; pray this doesn't become an issue
|
||||
set(LATEX_COMPILER_FLAGS "-shell-escape"
|
||||
CACHE STRING "Flags passed to latex.")
|
||||
set(PDFLATEX_COMPILER_FLAGS ${LATEX_COMPILER_FLAGS}
|
||||
CACHE STRING "Flags passed to pdflatex.")
|
||||
|
Loading…
Reference in New Issue
Block a user