Skip to content

Commit d2433c5

Browse files
committedMay 19, 2013
Revert "make cmake honor PYTHON_LIBRARY and find the default both in x86 (tested on ubuntu 12.10 64) and android "
This reverts commit f7f3e41.
1 parent 46b3471 commit d2433c5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎cmake/FindPythonLibrary.cmake

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626

2727
INCLUDE(CMakeFindFrameworks)
2828

29-
if(EXISTS ${PYTHON_LIBRARY})
29+
if(EXISTS PYTHON_LIBRARY)
3030
# Already in cache, be silent
3131
set(PYTHONLIBRARY_FOUND TRUE)
32-
else(EXISTS ${PYTHON_LIBRARY})
32+
else(EXISTS PYTHON_LIBRARY)
3333

3434
set(_custom_python_fw FALSE)
3535
if(APPLE AND PYTHON_CUSTOM_FRAMEWORK)
@@ -69,7 +69,6 @@ else(EXISTS ${PYTHON_LIBRARY})
6969
STRING(REPLACE "\\" "/" PYTHON_SITE_PACKAGES_DIR ${PYTHON_SITE_PACKAGES_DIR})
7070
endif(WIN32)
7171
FIND_LIBRARY(PYTHON_LIBRARY NAMES ${PYTHON_LIBRARY_NAMES} PATHS ${PYTHON_PREFIX}/lib ${PYTHON_PREFIX}/libs NO_DEFAULT_PATH)
72-
set(PYTHON_INCLUDE_PATH ${PYTHON_INCLUDE_PATH} CACHE FILEPATH "Directory holding the python.h include file")
7372
set(PYTHONLIBRARY_FOUND TRUE)
7473
endif(python_config)
7574

@@ -110,4 +109,4 @@ else(EXISTS ${PYTHON_LIBRARY})
110109
endif(PYTHONLIBRARY_FIND_REQUIRED)
111110
endif(PYTHONLIBRARY_FOUND)
112111

113-
endif (EXISTS ${PYTHON_LIBRARY})
112+
endif (EXISTS PYTHON_LIBRARY)

0 commit comments

Comments
 (0)
Please sign in to comment.