Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: link pycsdiff with PythonX::Module
... to fix the following build error on macOS: ``` [ 86%] Linking CXX shared library pycsdiff_py3/pycsdiff.dylib ld: Undefined symbols: _PyUnicode_FromStringAndSize, referenced from: boost::python::detail::caller_arity<2u>::impl<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&), boost::python::default_call_policies, boost::mpl::vector3<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&>>::operator()(_object*, _object*) in pycsdiff.cc.o boost::python::objects::caller_py_function_impl<boost::python::detail::caller<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> (*)(), boost::python::default_call_policies, boost::mpl::vector1<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>>>::operator()(_object*, _object*) in pycsdiff.cc.o _PyUnicode_Type, referenced from: boost::python::detail::converter_target_type<boost::python::to_python_value<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&>>::get_pytype() in pycsdiff.cc.o __Py_Dealloc, referenced from: boost::python::api::slice_nil::~slice_nil() in pycsdiff.cc.o void boost::python::def<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)>(char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)) in pycsdiff.cc.o void boost::python::def<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> (*)()>(char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> (*)()) in pycsdiff.cc.o boost::python::api::object::~object() in pycsdiff.cc.o __Py_NoneStruct, referenced from: __GLOBAL__sub_I_pycsdiff.cc in pycsdiff.cc.o clang: error: linker command failed with exit code 1 (use -v to see invocation) ```
- Loading branch information