Fix dune-common patch such that it works also on first run

This commit is contained in:
Dominic Kempf 2020-05-15 20:58:09 +02:00
parent f42ced7562
commit a71f2f7bc1
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ index 6f8ff307..93ea3e9c 100644
endif()
endfunction()
+if (IS_DIRECTORY "$ENV{DUNE_PYTHON_VIRTUALENV_PATH}")
+if (NOT "$ENV{DUNE_PYTHON_VIRTUALENV_PATH}" STREQUAL "")
+ set(DUNE_PYTHON_VIRTUALENV_SETUP 1)
+endif()
+
@ -21,7 +21,7 @@ index 8a09676f..96cb5954 100644
"Place Python virtualenv in top-level directory \"dune-python-env\" when using an absolute build directory"
)
+if(IS_DIRECTORY "$ENV{DUNE_PYTHON_VIRTUALENV_PATH}")
+if (NOT "$ENV{DUNE_PYTHON_VIRTUALENV_PATH}" STREQUAL "")
+ set(DUNE_PYTHON_VIRTUALENV_PATH "$ENV{DUNE_PYTHON_VIRTUALENV_PATH}")
+endif()
+