Skip to content

Commit aa5509b

Browse files
committedMay 19, 2013
Merge pull request #553 from mbernasocchi/myfix
make cmake honor PYTHON_LIBRARY
2 parents 2f9ccb5 + b3c6d38 commit aa5509b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎cmake/FindPythonLibrary.cmake

Lines changed: 3 additions & 3 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)
@@ -109,4 +109,4 @@ else(EXISTS PYTHON_LIBRARY)
109109
endif(PYTHONLIBRARY_FIND_REQUIRED)
110110
endif(PYTHONLIBRARY_FOUND)
111111

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

0 commit comments

Comments
 (0)
Please sign in to comment.