Fix compilation with MinGW only (#2053)

This commit is contained in:
Baljak 2020-01-05 15:49:59 +01:00 committed by Wenzel Jakob
parent 370a2ae2b3
commit 07e2259322

View File

@ -144,7 +144,7 @@ string(REGEX REPLACE "\\\\" "/" PYTHON_PREFIX "${PYTHON_PREFIX}")
string(REGEX REPLACE "\\\\" "/" PYTHON_INCLUDE_DIR "${PYTHON_INCLUDE_DIR}")
string(REGEX REPLACE "\\\\" "/" PYTHON_SITE_PACKAGES "${PYTHON_SITE_PACKAGES}")
if(CMAKE_HOST_WIN32 AND NOT (MSYS OR MINGW))
if(CMAKE_HOST_WIN32 AND NOT DEFINED ENV{MSYSTEM})
set(PYTHON_LIBRARY
"${PYTHON_PREFIX}/libs/Python${PYTHON_LIBRARY_SUFFIX}.lib")