Corentin Le Molgat
1af55b2be3
Add license boilerplate
2022-06-21 11:25:29 +02:00
Corentin Le Molgat
c7120439d4
Bump license date
2022-06-17 14:23:23 +02:00
StefanBruens
9021ffbb95
Build Python modules as CMake MODULEs ( #3259 )
...
Python since 3.8 no longer links to the interpreter library, so
symbols like `PyExc_AttributeError` will be undefined at link time.
This causes build failures when shared libraries are linked with
`-Wl,--no-undefined`. Use `TYPE MODULE` for python extension modules,
which allows to specify distinct flags via CMAKE_MODULE_LINKER_FLAGS
vs CMAKE_SHARED_LINKER_FLAGS. (The same is already used by
`pybind11_add_module(... MODULE ...)`).
Fixes #3258 .
2022-04-28 15:50:56 +02:00
Mizux Seiha
655eec5260
cmake: rework python
2021-12-03 14:20:19 +01:00
Laurent Perron
758ead91e9
Add version info on python, java, .NET; add patch info on C++, #2861
2021-10-22 10:08:28 +02:00
Laurent Perron
d17db3ec44
fix comments
2021-09-20 15:24:04 +02:00
Mizux Seiha
c7441c346c
cmake: Migrate to Python3 and use Development.Module
...
note: Development.Module is use to look for python header only
since library is not available on manylinux.
see: https://gitlab.kitware.com/cmake/cmake/-/issues/20425
note2: Development.Module has been introduced in CMake 3.18
ref: https://cmake.org/cmake/help/latest/module/FindPython3.html
2021-09-08 16:08:52 +02:00
Laurent Perron
8096f5bc0b
add more flags to CppFlags in init.h; export to python, java, .NET
2021-04-01 10:15:26 +02:00
Mizux Seiha
aa8745b547
python: Rework init support
2021-03-26 15:15:23 +01:00
Laurent Perron
6f73a7f529
add Shutdown method to non C++ init class
2021-03-24 21:15:55 +01:00
Laurent Perron
6a562b0c29
introduce struct to hold flags in cpp init code; rename classes
2021-03-24 09:54:39 +01:00
Mizux Seiha
724068a88a
cmake: Fix python init
2021-03-22 09:31:04 +01:00
Mizux Seiha
4a025e23c0
cmake: Add init
2021-03-21 16:19:12 +01:00
Laurent Perron
3c1932b21a
export init.h to all languages
2021-03-19 18:55:20 +01:00