Fix dune-common patch such that it works also on first run
This commit is contained in:
parent
f42ced7562
commit
a71f2f7bc1
|
@ -6,7 +6,7 @@ index 6f8ff307..93ea3e9c 100644
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
+if (IS_DIRECTORY "$ENV{DUNE_PYTHON_VIRTUALENV_PATH}")
|
+if (NOT "$ENV{DUNE_PYTHON_VIRTUALENV_PATH}" STREQUAL "")
|
||||||
+ set(DUNE_PYTHON_VIRTUALENV_SETUP 1)
|
+ set(DUNE_PYTHON_VIRTUALENV_SETUP 1)
|
||||||
+endif()
|
+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"
|
"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}")
|
+ set(DUNE_PYTHON_VIRTUALENV_PATH "$ENV{DUNE_PYTHON_VIRTUALENV_PATH}")
|
||||||
+endif()
|
+endif()
|
||||||
+
|
+
|
||||||
|
|
Loading…
Reference in New Issue