diff --git a/CMakeLists.txt b/CMakeLists.txt index 948c7d33a..fb9993c1a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,6 +101,11 @@ set(ARCHFLAGS $ENV{ARCHFLAGS}) cmake_print_variables(ARCHFLAGS) if( APPLE ) cmake_print_variables(CMAKE_OSX_ARCHITECTURES) +elseif( WIN32 ) + # When building using a Python not compiled with the same compiler, + # we then need to add this definition to pybass a Cython problem + # See https://github.com/cython/cython/issues/3405 + add_definitions(MS_WIN64) endif() list(POP_BACK CMAKE_MESSAGE_INDENT)