Код: Выделить всё
find_program(PYTHON python)
if(NOT PYTHON)
if(MSVC)
set(PYTHON "python3.12")
else()
message(FATAL_ERROR "could not find python executable")
endif()
endif()
get_filename_component(PYTHON_PATH "${PYTHON}" DIRECTORY)
Код: Выделить всё
Severity Code Description Project File Line Suppression State
Error CMake Error at C:/Users/himanshu/CMCommon/index_common.cmake:545 (message):
could not find python executable C:/Usershimanshu/CMCommon/index_common.cmake 545

Как я могу устранить вышеуказанную ошибку?
Подробнее здесь: https://stackoverflow.com/questions/783 ... executable