我有CMakeLists.txt:
find_package(PythonInterp REQUIRED)
find_package(PythonLibs REQUIRED)
当CMake运行时,它找到PythonInterp但找不到PythonLibs。它会产生错误:
Make Error at c:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES) (found version "2.7.6")
我该如何解决这个问题? 我可以补充一点,Python安装在目录
中C:\WinPython-64bit-2.7.6.4\python-2.7.6.amd64
如您所见,它是x64版本。