IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 7c1f9f96 authored by ralfulrich's avatar ralfulrich
Browse files

fixed run_examples

parent eba0281e
No related branches found
No related tags found
No related merge requests found
......@@ -209,11 +209,10 @@ function (CORSIKA_ADD_EXAMPLE)
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "**************************************"
COMMAND ${CMAKE_COMMAND} -E echo "***** running example: ${name} " ${run_options} VERBATIM
COMMAND gdb -ex "run ${run_options}" -ex bt -ex "info locals" -ex "up" -ex "info locals"
COMMAND gdb -q --batch -ex "run ${run_options}" -ex bt -ex "info locals" -ex "up" -ex "info locals"
-ex "up"-ex "info locals" -ex "up" -ex "info locals"
-ex quit ${CMAKE_CURRENT_BINARY_DIR}/${name}
VERBATIM
gdb -ex 'run arg1 arg2' -ex bt -ex quit ./program
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/example_outputs)
install (TARGETS ${name} DESTINATION share/examples)
endfunction (CORSIKA_ADD_EXAMPLE)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment