X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/694137abfe0dba49e9f89dba5f0f4d4f9de6f7fc..c37bfd055f255fd8b46855f9e2ac0da974f64292:/tools/cmake/Distrib.cmake?ds=sidebyside diff --git a/tools/cmake/Distrib.cmake b/tools/cmake/Distrib.cmake index a4ca2968bf..334dad9ac1 100644 --- a/tools/cmake/Distrib.cmake +++ b/tools/cmake/Distrib.cmake @@ -61,12 +61,12 @@ if(enable_java) endif() # include files -set(HEADERS ${headers_to_install} ${generated_headers_to_install}) -foreach(file ${HEADERS}) +foreach(file ${headers_to_install} ${generated_headers_to_install}) get_filename_component(location ${file} PATH) string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}/" "" location "${location}") + string(REPLACE "src/" "include/simgrid/" location "${location}") # For kernel headers install(FILES ${file} DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${location}) -endforeach(file ${HEADERS}) +endforeach() # example files foreach(file ${examples_to_install})