X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6c6da8b88e1a9fa663f2c1eb8917104d11c044dc..a2469b1c6f74e75451f8661195157d36e7235cce:/buildtools/Cmake/Distrib.cmake 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})