From a2469b1c6f74e75451f8661195157d36e7235cce Mon Sep 17 00:00:00 2001 From: agiersch Date: Thu, 27 Jan 2011 10:51:41 +0000 Subject: [PATCH 1/1] Fix installation of example files. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9509 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- buildtools/Cmake/Distrib.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/Cmake/Distrib.cmake b/buildtools/Cmake/Distrib.cmake index 8bc0770e4d..4de52cddb4 100644 --- a/buildtools/Cmake/Distrib.cmake +++ b/buildtools/Cmake/Distrib.cmake @@ -76,7 +76,7 @@ endforeach(file ${install_HEADERS}) # example files foreach(file ${examples_to_install_in_doc}) - string(REPLACE "${CMAKE_HOME_DIRECTORY}/examples/" "" file ${file}) + string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/examples/" "" file ${file}) get_filename_component(location ${file} PATH) install(FILES "examples/${file}" DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/doc/simgrid/examples/${location}) -- 2.20.1