<div dir="ltr">Don't we already call FindPythonInterp from somewhere else in the LLDB's CMake files?</div><br><div class="gmail_quote"><div dir="ltr">On Sat, Apr 30, 2016 at 5:17 PM Kamil Rytarowski <<a href="mailto:n54@gmx.com">n54@gmx.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">krytarowski created this revision.<br>
krytarowski added reviewers: emaste, labath, zturner.<br>
krytarowski added subscribers: lldb-commits, joerg.<br>
krytarowski set the repository for this revision to rL LLVM.<br>
<br>
NetBSD ships with pkgsrc that installs versioned Python executables with suffix, like: python2.7 or python3.5.<br>
<br>
CMake needs more help to detect appropriate name, so require where needed `FindPythonInterp`.<br>
<br>
This diff addresses the following failure:<br>
<br>
```<br>
CMake Error at scripts/cmake_install.cmake:31 (file):<br>
  file INSTALL cannot find<br>
  "/tmp/pkgsrc-tmp/wip/lldb-git/work/build/lib/python.".<br>
Call Stack (most recent call first):<br>
  cmake_install.cmake:37 (include)<br>
<br>
<br>
<br>
*** Error code 1<br>
```<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D19772" rel="noreferrer" target="_blank">http://reviews.llvm.org/D19772</a><br>
<br>
Files:<br>
  scripts/CMakeLists.txt<br>
<br>
Index: scripts/CMakeLists.txt<br>
===================================================================<br>
--- scripts/CMakeLists.txt<br>
+++ scripts/CMakeLists.txt<br>
@@ -9,6 +9,8 @@<br>
   ${LLDB_SOURCE_DIR}/include/lldb/lldb-versioning.h<br>
 )<br>
<br>
+include(FindPythonInterp)<br>
+<br>
 find_package(SWIG REQUIRED)<br>
 add_custom_command(<br>
   OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp<br>
<br>
<br>
</blockquote></div>