diff --git a/CMakeLists.txt b/CMakeLists.txt index 2eb2494e107ddb9d0551fa71cf019b026bfa54f9..a8424b4ef28259a75e4fe1fcd5604801acb39e86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,6 +65,13 @@ endif() if (Python3_FOUND) set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE}) set(PYTHONINTERP_FOUND ON) + if (WIN32) + get_target_property(Python3_IMPLIB_DEBUG Python3::Module IMPORTED_IMPLIB_DEBUG) + get_target_property(Python3_IMPLIB_RELEASE Python3::Module IMPORTED_IMPLIB_RELEASE) + if (Python3_IMPLIB_DEBUG) + set_target_properties(Python3::Module PROPERTIES IMPORTED_IMPLIB_DEBUG ${Python3_IMPLIB_RELEASE}) + endif() + endif() else() message("Failed to find Python3 interpreter. Disabling Python build") set(BUILD_PYTHON_DEFAULT OFF)