X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7ce4c8b29c65ff5537f92a3804d45979af9a060d..ebe7eb518714908921c43ae9904d98e443e1f5f1:/buildtools/Cmake/Supernovae.cmake diff --git a/buildtools/Cmake/Supernovae.cmake b/buildtools/Cmake/Supernovae.cmake index 129f4abbe2..4e7c2f9a0c 100644 --- a/buildtools/Cmake/Supernovae.cmake +++ b/buildtools/Cmake/Supernovae.cmake @@ -8,6 +8,7 @@ set(simgrid_fragile_sources src/surf/surfxml_parse.c src/xbt/graphxml_parse.c src/simdag/sd_daxloader.c + ${GTNETS_USED} ) set(gras_fragile_sources src/gras/DataDesc/ddt_parse.yy.c @@ -22,11 +23,11 @@ set(gras_fragile_sources 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,4 +65,5 @@ if (enable_supernovae) # I need supernovae set(SMPI_SRC ${CMAKE_CURRENT_BINARY_DIR}/src/supernovae_smpi.c) + endif(enable_supernovae) # I need supernovae