From 2badc1b694e26742b6d9ec17e66fcab53c2ed8f5 Mon Sep 17 00:00:00 2001
From: Francois Bleibel <fbleibel@gmail.com>
Date: Fri, 3 Sep 2010 10:36:13 +0900
Subject: [PATCH] Removed CMAKE_INSTALL_PREFIX in INSTALL directives.

---
 doc/CMakeLists.txt     | 6 +++---
 include/CMakeLists.txt | 2 +-
 src/CMakeLists.txt     | 4 ++--
 tools/CMakeLists.txt   | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index b18cd313..57f97849 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -21,12 +21,12 @@ ADD_CUSTOM_TARGET(documentation ALL
 
 # html files
 INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
-  DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/dynamic-graph)
+  DESTINATION share/doc/dynamic-graph)
 
 # doxytag
 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.doxytag
-  DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/dynamic-graph/html)
+  DESTINATION share/doc/dynamic-graph/html)
 
 # pictures
 INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/pictures
-  DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/dynamic-graph/html)
+  DESTINATION share/doc/dynamic-graph/html)
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
index 6a7b7fe5..80c21daf 100644
--- a/include/CMakeLists.txt
+++ b/include/CMakeLists.txt
@@ -51,6 +51,6 @@ ENDFOREACH(lHeader)
 # Install procedure for the header files
 #----------------------------------------------------
 INSTALL(FILES ${fullpath_${PROJECT_NAME}_HEADERS}
-       DESTINATION ${CMAKE_INSTALL_PREFIX}/include/${PROJECT_NAME}
+       DESTINATION include/${PROJECT_NAME}
        PERMISSIONS OWNER_READ GROUP_READ WORLD_READ OWNER_WRITE
 )
\ No newline at end of file
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 03ce58c7..35eae48b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -50,7 +50,7 @@ IF (UNIX)
 ENDIF (UNIX)
 
 INSTALL(TARGETS ${LIBRARY_NAME}
-  DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+  DESTINATION lib)
 
 ####################################
 ### Plugins
@@ -81,5 +81,5 @@ SET_TARGET_PROPERTIES(${plugin}
    LIBRARY_OUTPUT_DIRECTORY "${${PROJECT_NAME}_BINARY_DIR}/lib/plugin")
 
 INSTALL(TARGETS ${plugin}
-		DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/plugin)
+		DESTINATION lib/plugin)
 ENDFOREACH(plugin_file)
\ No newline at end of file
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 65f68570..5a68f532 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -14,7 +14,7 @@ INSTALL(
 	FILES
 		${${PROJECT_NAME}_BINARY_DIR}/tools/shell.sh
 	DESTINATION
-		 ${CMAKE_INSTALL_PREFIX}/bin/${PROJECT_NAME}
+		 bin/${PROJECT_NAME}
 	PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
                       GROUP_EXECUTE GROUP_READ )
 
@@ -40,5 +40,5 @@ FOREACH(tool_name ${tools})
 	ENDIF(UNIX)
 	  
 	INSTALL(TARGETS ${tool_name}
-		DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/${PROJECT_NAME})
+		DESTINATION bin/${PROJECT_NAME})
 ENDFOREACH(tool_name)
\ No newline at end of file
-- 
GitLab