diff options
| author | Alvin Wong <alvinhochun@gmail.com> | 2017-07-29 14:37:55 (GMT) |
|---|---|---|
| committer | Alvin Wong <alvinhochun@gmail.com> | 2017-07-29 14:37:55 (GMT) |
| commit | bf7c0d282df0092cba2ddb553c36fa82e0486f57 (patch) | |
| tree | 27c4f603987a6e5e60f7d4c8d7bc101d57e509a6 | |
| parent | ced405faf980938a73e2bde8153b3ff5525c856f (diff) | |
Stop CMake trying to use the wrong Python lib version
| -rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ee45de4..e1004ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,10 +193,12 @@ include(MacroJPEG) if(MINGW) # Special check: Building on Windows and ext_python is used find_package(PythonInterp 3.6) - find_package(PythonLibrary 3.6) - if(PYTHONLIBS_FOUND) - include("${CMAKE_CURRENT_SOURCE_DIR}/PythonWindowsCheck.cmake") - endif(PYTHONLIBS_FOUND) + if(PYTHONINTERP_FOUND) + find_package(PythonLibrary 3.6) + if(PYTHONLIBS_FOUND) + include("${CMAKE_CURRENT_SOURCE_DIR}/PythonWindowsCheck.cmake") + endif(PYTHONLIBS_FOUND) + endif(PYTHONINTERP_FOUND) else(MINGW) find_package(PythonInterp 3.0) find_package(PythonLibrary 3.0) |
