mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
Add the following variables: * Python_EXECUTABLE_DEBUG * Python_INTERPRETER * Python_DEBUG_POSTFIX and target Python::InterpreterDebug. python_add_library() command Manage DEBUG_POSTFIX target property based on the value of Python_DEBUG_POSTFIX variable. Fixes: #25874
8 lines
202 B
CMake
8 lines
202 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
|
|
find_package (Python3 REQUIRED)
|
|
|
|
if (NOT Python3_EXECUTABLE MATCHES "^${PYTHON3_VIRTUAL_ENV}/.+")
|
|
message (FATAL_ERROR "Fail to use virtual environment")
|
|
endif()
|