Adding the ability of specifying the directory for the HTML documentation

as a sub-directory of the general installation directory (this is how
the graphics.pixar.com site is built).
This commit is contained in:
manuelk 2013-09-16 18:56:40 -07:00
parent 55c0b0d70f
commit 39d61eb2e3

View File

@ -64,6 +64,12 @@ endif()
if (NOT DEFINED CMAKE_DOCDIR_BASE)
set( CMAKE_DOCDIR_BASE share/doc/opensubdiv )
else()
if (IS_ABSOLUTE ${CMAKE_DOCDIR_BASE})
set( CMAKE_DOCDIR_BASE ${CMAKE_DOCDIR_BASE} )
else()
set( CMAKE_DOCDIR_BASE ${CMAKE_INSTALL_PREFIX}/${CMAKE_DOCDIR_BASE} )
endif()
endif()
# Allow install path to be overridden for cross-compile builds