SET(DEAL_II_CMAKE_MACROS_RELDIR "@DEAL_II_CMAKE_MACROS_RELDIR@")
SET(DEAL_II_COMMON_RELDIR "@DEAL_II_COMMON_RELDIR@")
-SET(DEAL_II_DOCUMENTATION_RELDIR "@DEAL_II_DOCUMENTATION_RELDIR@")
+SET(DEAL_II_DOCREADME_RELDIR "@DEAL_II_DOCREADME_RELDIR@")
+SET(DEAL_II_DOCHTML_RELDIR "@DEAL_II_DOCHTML_RELDIR@")
SET(DEAL_II_EXAMPLES_RELDIR "@DEAL_II_EXAMPLES_RELDIR@")
SET(DEAL_II_EXECUTABLE_RELDIR "@DEAL_II_EXECUTABLE_RELDIR@")
SET(DEAL_II_INCLUDE_RELDIR "@DEAL_II_INCLUDE_RELDIR@")
#
# Always install a minimalistic README and LICENSE file:
#
+
+# Bloody hack to get an empty relative path:
+IF(NOT "${DEAL_II_DOCREADME_RELDIR}" STREQUAL "")
+ SET(_foo ${DEAL_II_DOCREADME_RELDIR})
+ELSE()
+ SET(_foo \${__empty})
+ENDIF()
+
SET(_destination)
INSTALL(FILES
${CMAKE_SOURCE_DIR}/README
${CMAKE_SOURCE_DIR}/LICENSE
- DESTINATION ${CMAKE_INSTALL_PREFIX}/${DEAL_II_DOCREADME_RELDIR}
+ DESTINATION ${_foo}
COMPONENT library
)
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams