Skip to content
Snippets Groups Projects
Commit 1cde5cb3 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[!317] set full path without which

Merge branch 'feature/fix-profiling-fullpath' into 'master'

ref:extensions/dune-codegen using which only works, if generate_operators is
in PATH, otherwise cmake fails. This is especially the case if dune-codegen is
configured completely new.

See merge request [extensions/dune-codegen!317]

  [extensions/dune-codegen!317]: gitlab.dune-project.org/extensions/dune-codegen/merge_requests/317
parents 16aa99f4 835c4663
No related branches found
No related tags found
No related merge requests found
......@@ -174,11 +174,8 @@ function(add_generated_executable)
if(DUNE_CODEGEN_PROFILING)
# This is a bit silly, but cProfile only finds entry point scripts
# if their full path is provided. So we resort to using which.
dune_execute_process(COMMAND which generate_operators
OUTPUT_VARIABLE fullcommand
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# if their full path is provided.
set(fullcommand "${DUNE_PYTHON_VIRTUALENV_PATH}/bin/generate_operators")
endif()
# Define build rules for all operator header files and gather a list of them
......
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