Skip to content
Snippets Groups Projects
Commit 23bf464a authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Added option OGS_DISABLE_POETRY.

parent f467d895
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ endif()
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.16)
option(OGS_USE_UNITY_BUILDS "Enables Unity builds for faster compilation." ON)
endif()
option(OGS_DISABLE_POETRY "Disables automatic Python virtual environment handling with poetry." OFF)
# Third-party libraries, names come from Conan package names
set(OGS_LIBS
......
find_program(POETRY poetry)
if(NOT OGS_DISABLE_POETRY)
find_program(POETRY poetry)
endif()
if(POETRY)
configure_file(${PROJECT_SOURCE_DIR}/scripts/python/poetry.in.toml
${PROJECT_BINARY_DIR}/poetry.toml COPYONLY)
......
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