From 636e4f8c31394f36fb3e4be48ae76e469fd0773e Mon Sep 17 00:00:00 2001
From: Dilawar Singh <dilawars@ncbs.res.in>
Date: Thu, 6 Sep 2018 13:49:54 +0530
Subject: [PATCH] Fixed paths for installation.

---
 CMakeLists.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7695dd44..756c329d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -109,8 +109,9 @@ if(WITH_GUI)
 endif()
 
 
-# NOTE: leading / is important other whole path will be installed.
-install(DIRECTORY ${PYMOOSE_INSTALL_DIR}/
+# NOTE: leading / is important other whole path will be installed. Do not
+# install usr since it comes with CMAKE_INSTALL_PREFIX.
+install(DIRECTORY ${PYMOOSE_INSTALL_DIR}/usr/
     DESTINATION ${CMAKE_INSTALL_PREFIX}
     CONFIGURATIONS Release
     PATTERN ".git" EXCLUDE
-- 
GitLab