File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ if(MSVC)
21
21
XPTI_STATIC_LIBRARY XPTI_CALLBACK_API_EXPORTS)
22
22
endif ()
23
23
24
- set (UR_TRACE_CLI ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /urtrace)
24
+ set (UR_TRACE_CLI_BIN ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /urtrace)
25
25
26
26
add_custom_target (ur_trace_cli)
27
- add_custom_command (TARGET ur_trace_cli PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR} /urtrace ${UR_TRACE_CLI } )
27
+ add_custom_command (TARGET ur_trace_cli PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR} /urtrace.py ${UR_TRACE_CLI_BIN } )
28
28
add_dependencies (ur_collector ur_trace_cli)
Original file line number Diff line number Diff line change @@ -133,8 +133,12 @@ def get_dynamic_library_name(name):
133
133
if args .debug :
134
134
print (env )
135
135
136
- result = subprocess .run (config ['command' ], env = env )
137
- if args .debug :
138
- print (result )
136
+ if config ['command' ]:
137
+ result = subprocess .run (config ['command' ], env = env )
138
+ if args .debug :
139
+ print (result )
140
+ exit (result .returncode )
141
+ else :
142
+ parser .print_help ()
143
+ sys .exit ("\n Error: Missing command to run." )
139
144
140
- exit (result .returncode )
You can’t perform that action at this time.
0 commit comments