Commit 0bb93545 authored by Jørgen Lind's avatar Jørgen Lind
Browse files

Fix so that we always link with the release build of Python on Windows

parent d0aaa725
Pipeline #85326 passed with stages
in 21 minutes and 24 seconds
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment