Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
No error if there is no file into doc/html.
[simgrid.git] / buildtools / Cmake / src / CMakeDistrib.txt
index 67492b6..2d690a6 100755 (executable)
@@ -169,12 +169,9 @@ add_custom_command(TARGET install-simgrid
        COMMAND echo "install doc/examples  OK"
        WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
 )
-if(NOT EXISTS ${PROJECT_DIRECTORY}/doc/html/)
-       file(MAKE_DIRECTORY ${PROJECT_DIRECTORY}/doc/html/)
-endif(NOT EXISTS ${PROJECT_DIRECTORY}/doc/html/)
 
 add_custom_command(TARGET install-simgrid
-       COMMAND cp ${PROJECT_DIRECTORY}/doc/html/* $ENV{DESTDIR}${prefix}/doc/simgrid/html/
+       COMMAND cp ${PROJECT_DIRECTORY}/doc/html/* $ENV{DESTDIR}${prefix}/doc/simgrid/html/ || true
        COMMAND echo "install doc/html      OK"
        WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
 )