X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a37684dd40935e1c18856a7f77f8d1a2caeb2875..4bc7488fce1d27f7234e043853cf9259a8947636:/buildtools/Cmake/Supernovae.cmake diff --git a/buildtools/Cmake/Supernovae.cmake b/buildtools/Cmake/Supernovae.cmake index 8708389447..83af01514d 100644 --- a/buildtools/Cmake/Supernovae.cmake +++ b/buildtools/Cmake/Supernovae.cmake @@ -4,14 +4,17 @@ ### Add here every files that should not be supernovaed (generated files) ### ############################################################################# set(simgrid_fragile_sources - src/gras/DataDesc/ddt_parse.yy.c + src/xbt/datadesc/ddt_parse.yy.c src/surf/surfxml_parse.c src/xbt/graphxml_parse.c src/simdag/sd_daxloader.c + src/xbt/mmalloc/mm.c + ${GTNETS_USED} ) set(gras_fragile_sources - src/gras/DataDesc/ddt_parse.yy.c + src/xbt/datadesc/ddt_parse.yy.c src/xbt/graphxml_parse.c + src/xbt/mmalloc/mm.c ) ##################################################### @@ -19,14 +22,14 @@ set(gras_fragile_sources ##################################################### ### Rebuild the supernovae source files -if (PERL_EXECUTABLE AND enable_supernovae) # I need supernovae and can use it +if (enable_supernovae) # I need supernovae # supernovae files are generated. I promise - set_source_files_properties(${CMAKE_HOME_DIRECTORY}/src/supernovae_sg.c + set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/src/supernovae_sg.c PROPERTIES GENERATED true) - set_source_files_properties(${CMAKE_HOME_DIRECTORY}/src/supernovae_gras.c + set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/src/supernovae_gras.c PROPERTIES GENERATED true) - set_source_files_properties(${CMAKE_HOME_DIRECTORY}/src/supernovae_smpi.c + set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/src/supernovae_smpi.c PROPERTIES GENERATED true) ADD_CUSTOM_COMMAND( @@ -64,9 +67,5 @@ if (PERL_EXECUTABLE AND enable_supernovae) # I need supernovae and can use it set(SMPI_SRC ${CMAKE_CURRENT_BINARY_DIR}/src/supernovae_smpi.c) -else(PERL_EXECUTABLE AND enable_supernovae) # I need supernovae and can use it - if (enable_supernovae) - message("You need Perl to activate supernovae") - set(enable_supernovae 0) - endif(enable_supernovae) -endif(PERL_EXECUTABLE AND enable_supernovae) # I need supernovae and can use it + +endif(enable_supernovae) # I need supernovae