Skip to content
Snippets Groups Projects
Commit 835c4663 authored by Marcel Koch's avatar Marcel Koch
Browse files

set full path without which

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