ResInsight/redhat/02_install_docdir.patch
Jacob Støren 1e7c4a385a Buildsystem: Prefixed the resinsight vars to make them groupend and more accessible from the cmake gui.
Also introduced an option to turn openmp on and off
p4#: 22257
2013-08-30 15:37:29 +02:00

25 lines
808 B
Diff

diff --git a/ApplicationCode/CMakeLists.txt b/ApplicationCode/CMakeLists.txt
index 7995ceb..4930b98 100644
--- a/ApplicationCode/CMakeLists.txt
+++ b/ApplicationCode/CMakeLists.txt
@@ -8,6 +8,10 @@ CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/ApplicationCode/Adm/RIVersionInfo.h.cmake
${CMAKE_BINARY_DIR}/Generated/RIVersionInfo.h
)
+if(NOT CMAKE_INSTALL_DOCDIR)
+ set(CMAKE_INSTALL_DOCDIR share/doc/resinsight)
+endif(NOT CMAKE_INSTALL_DOCDIR)
+
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
@@ -313,7 +317,7 @@ else (RESINSIGHT_PRIVATE_INSTALL)
)
# license go in /usr/share/doc
install (FILES ${RESINSIGHT_LICENSE_FILES}
- DESTINATION share/doc/ResInsight
+ DESTINATION ${CMAKE_INSTALL_DOCDIR}
)
# no bundled libraries for system install
# application icon