79377925

Date: 2025-01-22 13:48:27
Score: 2.5
Natty:
Report link

Please provide the CMake version use since the UseSWIG builtin module has got some rework in 3.19 IIRC

Did you set some property on the example.i file ?

It should be:

set_property(SOURCE example.i PROPERTY CPLUSPLUS ON)
swig_add_library(pyIntegration LANGUAGE python SOURCES example.i)

ref: https://cmake.org/cmake/help/latest/module/UseSWIG.html

ps: you can find a working sample here: https://github.com/Mizux/python-native

Reasons:
  • RegEx Blacklisted phrase (2.5): Please provide
  • Contains signature (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Mizux