From 1eb360cdd23e2f0ff1bfdde12c61146ca880c160 Mon Sep 17 00:00:00 2001 From: navarrop Date: Mon, 7 Mar 2011 11:14:34 +0000 Subject: [PATCH] Add working directory to command line for generating files with gras_stub_generator git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9759 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/amok/bandwidth/CMakeLists.txt | 1 + examples/amok/saturate/CMakeLists.txt | 1 + examples/gras/all2all/CMakeLists.txt | 1 + examples/gras/chrono/CMakeLists.txt | 1 + examples/gras/mmrpc/CMakeLists.txt | 1 + examples/gras/mutual_exclusion/simple_token/CMakeLists.txt | 1 + examples/gras/ping/CMakeLists.txt | 1 + examples/gras/pmm/CMakeLists.txt | 1 + examples/gras/properties/CMakeLists.txt | 1 + examples/gras/rpc/CMakeLists.txt | 1 + examples/gras/spawn/CMakeLists.txt | 3 ++- examples/gras/synchro/CMakeLists.txt | 1 + examples/gras/timer/CMakeLists.txt | 1 + teshsuite/gras/datadesc/CMakeLists.txt | 3 +-- teshsuite/gras/empty_main/CMakeLists.txt | 1 + teshsuite/gras/small_sleep/CMakeLists.txt | 1 + 16 files changed, 17 insertions(+), 3 deletions(-) diff --git a/examples/amok/bandwidth/CMakeLists.txt b/examples/amok/bandwidth/CMakeLists.txt index 61f0935d70..29b59f2a83 100644 --- a/examples/amok/bandwidth/CMakeLists.txt +++ b/examples/amok/bandwidth/CMakeLists.txt @@ -20,6 +20,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_bandwidth_sensor.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/bandwidth.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator bandwidth ${CMAKE_CURRENT_SOURCE_DIR}/bandwidth.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/examples/amok/saturate/CMakeLists.txt b/examples/amok/saturate/CMakeLists.txt index b68ff9ac2c..651c0de615 100644 --- a/examples/amok/saturate/CMakeLists.txt +++ b/examples/amok/saturate/CMakeLists.txt @@ -20,6 +20,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_saturate_sensor.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/saturate.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator saturate ${CMAKE_CURRENT_SOURCE_DIR}/saturate.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/examples/gras/all2all/CMakeLists.txt b/examples/gras/all2all/CMakeLists.txt index ff56104bb8..d3ae7ed34c 100644 --- a/examples/gras/all2all/CMakeLists.txt +++ b/examples/gras/all2all/CMakeLists.txt @@ -20,6 +20,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_all2all_receiver.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/all2all.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator all2all ${CMAKE_CURRENT_SOURCE_DIR}/all2all.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/examples/gras/chrono/CMakeLists.txt b/examples/gras/chrono/CMakeLists.txt index da9e0ac9c6..62d8d4a2ab 100644 --- a/examples/gras/chrono/CMakeLists.txt +++ b/examples/gras/chrono/CMakeLists.txt @@ -16,6 +16,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_chrono_multiplier.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/chrono.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator chrono ${CMAKE_CURRENT_SOURCE_DIR}/chrono.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/examples/gras/mmrpc/CMakeLists.txt b/examples/gras/mmrpc/CMakeLists.txt index 431dd08b06..4f5d118209 100644 --- a/examples/gras/mmrpc/CMakeLists.txt +++ b/examples/gras/mmrpc/CMakeLists.txt @@ -24,6 +24,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_mmrpc_server.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/mmrpc.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator mmrpc ${CMAKE_CURRENT_SOURCE_DIR}/mmrpc.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/examples/gras/mutual_exclusion/simple_token/CMakeLists.txt b/examples/gras/mutual_exclusion/simple_token/CMakeLists.txt index 926a8e9576..0305c436df 100644 --- a/examples/gras/mutual_exclusion/simple_token/CMakeLists.txt +++ b/examples/gras/mutual_exclusion/simple_token/CMakeLists.txt @@ -16,6 +16,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_simple_token_node.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/simple_token.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator simple_token ${CMAKE_CURRENT_SOURCE_DIR}/simple_token.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/examples/gras/ping/CMakeLists.txt b/examples/gras/ping/CMakeLists.txt index f01ec2a6ca..6a2400af3b 100644 --- a/examples/gras/ping/CMakeLists.txt +++ b/examples/gras/ping/CMakeLists.txt @@ -23,6 +23,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_ping_server.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/ping.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator ping ${CMAKE_CURRENT_SOURCE_DIR}/ping.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/examples/gras/pmm/CMakeLists.txt b/examples/gras/pmm/CMakeLists.txt index eee153f14d..dfc431e7d9 100644 --- a/examples/gras/pmm/CMakeLists.txt +++ b/examples/gras/pmm/CMakeLists.txt @@ -20,6 +20,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_pmm_master.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/pmm.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator pmm ${CMAKE_CURRENT_SOURCE_DIR}/pmm.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/examples/gras/properties/CMakeLists.txt b/examples/gras/properties/CMakeLists.txt index 111947cd92..cd83b22af8 100644 --- a/examples/gras/properties/CMakeLists.txt +++ b/examples/gras/properties/CMakeLists.txt @@ -19,6 +19,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_properties_bob.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/properties.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator properties ${CMAKE_CURRENT_SOURCE_DIR}/properties.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/examples/gras/rpc/CMakeLists.txt b/examples/gras/rpc/CMakeLists.txt index 5d445ce8fd..b790002eaf 100644 --- a/examples/gras/rpc/CMakeLists.txt +++ b/examples/gras/rpc/CMakeLists.txt @@ -20,6 +20,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_rpc_forwarder.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/rpc.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator rpc ${CMAKE_CURRENT_SOURCE_DIR}/rpc.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/examples/gras/spawn/CMakeLists.txt b/examples/gras/spawn/CMakeLists.txt index 049002dfeb..0a7e4c0fee 100644 --- a/examples/gras/spawn/CMakeLists.txt +++ b/examples/gras/spawn/CMakeLists.txt @@ -15,7 +15,8 @@ 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 - ) + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + ) ### Add definitions for compile if(NOT WIN32) diff --git a/examples/gras/synchro/CMakeLists.txt b/examples/gras/synchro/CMakeLists.txt index e51c64f046..24c555dcf6 100644 --- a/examples/gras/synchro/CMakeLists.txt +++ b/examples/gras/synchro/CMakeLists.txt @@ -16,6 +16,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_synchro_philosopher.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/synchro.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator synchro ${CMAKE_CURRENT_SOURCE_DIR}/synchro.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/examples/gras/timer/CMakeLists.txt b/examples/gras/timer/CMakeLists.txt index 431ee35b7f..758fa29600 100644 --- a/examples/gras/timer/CMakeLists.txt +++ b/examples/gras/timer/CMakeLists.txt @@ -16,6 +16,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_timer_client.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/timer.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator timer ${CMAKE_CURRENT_SOURCE_DIR}/timer.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/teshsuite/gras/datadesc/CMakeLists.txt b/teshsuite/gras/datadesc/CMakeLists.txt index 096e8725a7..d54b5700c4 100644 --- a/teshsuite/gras/datadesc/CMakeLists.txt +++ b/teshsuite/gras/datadesc/CMakeLists.txt @@ -9,5 +9,4 @@ if(NOT WIN32) target_link_libraries(datadesc_usage gras m pthread) elseif(NOT WIN32) target_link_libraries(datadesc_usage gras) -endif(NOT WIN32) - +endif(NOT WIN32) \ No newline at end of file diff --git a/teshsuite/gras/empty_main/CMakeLists.txt b/teshsuite/gras/empty_main/CMakeLists.txt index bd6cf8bddd..c8df2b6d42 100644 --- a/teshsuite/gras/empty_main/CMakeLists.txt +++ b/teshsuite/gras/empty_main/CMakeLists.txt @@ -16,6 +16,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_empty_main_simulator.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/empty_main.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator empty_main ${CMAKE_CURRENT_SOURCE_DIR}/empty_main.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile diff --git a/teshsuite/gras/small_sleep/CMakeLists.txt b/teshsuite/gras/small_sleep/CMakeLists.txt index 3b6cffb29d..8291f77f1f 100644 --- a/teshsuite/gras/small_sleep/CMakeLists.txt +++ b/teshsuite/gras/small_sleep/CMakeLists.txt @@ -16,6 +16,7 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/_small_sleep_simulator.c DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/small_sleep.xml COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator small_sleep ${CMAKE_CURRENT_SOURCE_DIR}/small_sleep.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ### Add definitions for compile -- 2.20.1