diff --git a/bindings/pyroot/pythonizations/CMakeLists.txt b/bindings/pyroot/pythonizations/CMakeLists.txt index 40207644a410b..68b632c2ae0a4 100644 --- a/bindings/pyroot/pythonizations/CMakeLists.txt +++ b/bindings/pyroot/pythonizations/CMakeLists.txt @@ -157,9 +157,10 @@ endforeach() # The Python version at build time should be easy to figure out from Python, so # we can raise an exception if the used Python version is not compatible. +# The file will be implicitly installed by install(DIRECTORY ...) in the +# ROOT_PYTHON_PACKAGE function. set(python_version_file "${localruntimedir}/ROOT/_python_version.py") file(WRITE "${python_version_file}" "_root_python_version = \"${Python3_VERSION}\"\n") -install(FILES "${python_version_file}" DESTINATION "${CMAKE_INSTALL_PYTHONDIR}") # A custom target that depends on the Python sources being present in the build # directory. This will be used as a dependency of the pythonization libraries,