Skip to content
Permalink
Browse files

Merge pull request #2486 from SebDieBln/CMake_FixFindPythonLibraryWin…

…dows

have CMake find Python library on Windows
  • Loading branch information
jef-n committed Dec 15, 2015
2 parents 95b92c7 + c9b7552 commit 1138253dd2fff9964d10a15abe37ba12d261ccc9
Showing with 1 addition and 0 deletions.
  1. +1 −0 cmake/FindPythonLibrary.cmake
@@ -72,6 +72,7 @@ else(EXISTS "${PYTHON_INCLUDE_PATH}" AND EXISTS "${PYTHON_LIBRARY}" AND EXISTS "
set(PYTHON_LIBRARY_NAMES python${PYTHON_SHORT_VERSION} python${PYTHON_SHORT_VERSION_NO_DOT} python${PYTHON_SHORT_VERSION}m python${PYTHON_SHORT_VERSION_NO_DOT}m)
if(WIN32)
STRING(REPLACE "\\" "/" PYTHON_SITE_PACKAGES_DIR ${PYTHON_SITE_PACKAGES_DIR})
FIND_LIBRARY(PYTHON_LIBRARY NAMES ${PYTHON_LIBRARY_NAMES} PATHS ${PYTHON_PREFIX}/lib ${PYTHON_PREFIX}/libs)
endif(WIN32)
FIND_LIBRARY(PYTHON_LIBRARY NAMES ${PYTHON_LIBRARY_NAMES})
set(PYTHON_INCLUDE_PATH ${PYTHON_INCLUDE_PATH} CACHE FILEPATH "Directory holding the python.h include file" FORCE)

0 comments on commit 1138253

Please sign in to comment.
You can’t perform that action at this time.