Revert "Tell cmake to use EXACT python version (from PYBIND11_PYTHON_VERSION)."

This reverts commit 2f97147fc7 as per
suggestion in !65.
This commit is contained in:
Nicolas Bigaouette 2016-01-12 12:56:17 -05:00
parent 2f97147fc7
commit 6435a09034

View File

@ -24,8 +24,8 @@ endif()
string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE) string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
set(Python_ADDITIONAL_VERSIONS 3.4 3.5 3.6) set(Python_ADDITIONAL_VERSIONS 3.4 3.5 3.6)
find_package(PythonLibs ${PYBIND11_PYTHON_VERSION} EXACT REQUIRED) find_package(PythonLibs ${PYBIND11_PYTHON_VERSION} REQUIRED)
find_package(PythonInterp ${PYBIND11_PYTHON_VERSION} EXACT REQUIRED) find_package(PythonInterp ${PYBIND11_PYTHON_VERSION} REQUIRED)
include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag)