[CMake] compiling for both python2 and python3
Juan E. Sanchez
juan.e.sanchez at gmail.com
Mon Jun 25 10:35:42 EDT 2018
Hi,
What happens if you call FindBoost once for python 2 and once for python
3? Between invocations you could copy the boost variables to python
specific variants.
FindBoost( . . . .)
SET(Boost_LIBRARY_DIRS_PYTHON2 ${Boost_LIBRARY_DIRS})
FindBoost( . . . .)
SET(Boost_LIBRARY_DIRS_PYTHON3 ${Boost_LIBRARY_DIRS})
Regards,
Juan
On 6/25/18 1:24 AM, Alexander Bürger wrote:
> Hello Juan,
>
> but there are also two boost-python versions required, one for python2
> and one for python3. I think it is not a good idea to reimplement the
> FindBoost logic.
>
> Cheers,
>
> Alexander Bürger
> MET Norway
>
>
>
More information about the CMake
mailing list