Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix sources are generated for spawn.
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 25 Nov 2010 14:25:58 +0000 (14:25 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 25 Nov 2010 14:25:58 +0000 (14:25 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8653 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/gras/spawn/CMakeLists.txt

index 8434053..f093d21 100644 (file)
@@ -1,8 +1,8 @@
 cmake_minimum_required(VERSION 2.6)
 
-set_source_files_properties(${PROJECT_DIRECTORY}/examples/gras/spawn/_spawn_simulator.c
-                           ${PROJECT_DIRECTORY}/examples/gras/spawn/_spawn_server.c
-                           PROPERTIES GENERATED true)
+set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/_spawn_simulator.c
+                                       ${CMAKE_CURRENT_BINARY_DIR}/_spawn_server.c
+                                       PROPERTIES GENERATED true)
 
 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
 
@@ -12,6 +12,7 @@ add_executable(spawn_server   ${CMAKE_CURRENT_BINARY_DIR}/_spawn_server.c
                                ${CMAKE_CURRENT_SOURCE_DIR}/spawn.c)
 
 add_custom_command(OUTPUT   ${CMAKE_CURRENT_BINARY_DIR}/_spawn_server.c
+                            ${CMAKE_CURRENT_BINARY_DIR}/_spawn_simulator.c
                    DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/spawn.xml
                    COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator spawn ${CMAKE_CURRENT_SOURCE_DIR}/spawn.xml
                   )