Skip to content
Snippets Groups Projects
Verified Commit 00e4af81 authored by Lars Bilke's avatar Lars Bilke
Browse files

[cmake] Add check for failed venv creation (OGS_USE_PIP).

parent d0318612
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,15 @@ if(OGS_USE_PIP)
${PROJECT_SOURCE_DIR}/scripts/cmake/PythonCreateVirtualEnv.cmake
WORKING_DIRECTORY ${PROJECT_BINARY_DIR} COMMAND_ECHO STDOUT
ECHO_OUTPUT_VARIABLE ECHO_ERROR_VARIABLE
RESULT_VARIABLE _return_code
)
if(NOT ${_return_code} EQUAL 0)
message(
FATAL_ERROR
"Creation of Python virtual environment failed!\n"
"To disable virtual environments set OGS_USE_PIP=OFF."
)
endif()
unset(_OGS_PYTHON_PACKAGES_SHA1 CACHE)
endif()
set(_venv_bin_dir "bin")
......
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