Skip to content
Snippets Groups Projects
Commit 6eec7958 authored by Frederik Hennig's avatar Frederik Hennig Committed by Christoph Alt
Browse files

Apply 1 suggestion(s) to 1 file(s)


Co-authored-by: default avatarFrederik Hennig <frederik.hennig@fau.de>
parent 510cadf6
1 merge request!20Adding option to automatically installation
cmake_minimum_required( VERSION 3.24 )
project(PystencilsSfg_Standalone)
set(CODEGEN_PRIVATE_VENV ON
CACHE BOOL
"Create a private virtual Python environment inside the build tree for code generation"
)
if (DEFINED CACHE{PystencilsSfg_PYTHON_INTERPRETER})
set( CACHE{CODEGEN_PRIVATE_VENV} OFF)
set( _use_venv_init OFF)
elseif(DEFINED PystencilsSfg_PYTHON_PATH)
set( CACHE{CODEGEN_PRIVATE_VENV} OFF)
set( _use_venv_init OFF)
else()
set( _use_venv_init ON )
endif()
set(CODEGEN_PRIVATE_VENV ${_use_venv_init}
CACHE BOOL
"Create a private virtual Python environment inside the build tree for code generation"
)
function(codegen_venv_install)
if(NOT CODEGEN_PRIVATE_VENV)
return()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment