# See the License for the specific language governing permissions and
# limitations under the License.
-find_package(PythonInterp 2.7)
-find_package(PythonLibs 2.7)
+if (CMAKE_VERSION VERSION_LESS 3.12)
+ find_package(PythonInterp 2.7)
+else()
+ find_package(Python3 COMPONENTS Interpreter)
+endif()
if(PYTHONINTERP_FOUND)
install(
--dist-dir=${CMAKE_INSTALL_PREFIX}
OUTPUT_QUIET
)"
+ COMPONENT vpp-api-python
)
endif()