Cmake python linking
Created by: looooo
should solve https://forum.freecadweb.org/viewtopic.php?f=22&t=36532 (conda)
Summary:
- add an option:
BUILD_DYNAMIC_LINK_PYTHON
(default=ON) - if set to OFF only the FreeCADMain and FreeCADMainCmd targets will be linked agains python DSO
- additional linker flag is added for osx:
-undefined,dynamic_lookup
Thank you for creating a pull request to contribute to FreeCAD! To ease integration, please confirm the following:
-
Branch rebased on latest master git pull --rebase upstream master
-
Unit tests confirmed to pass by running ./bin/FreeCAD --run-test 0
-
Commit message is well-written -
Commit message includes issue #<id>
orfixes #<id>
where<id>
is the associated MantisBT issue id if one exists
And please remember to update the Wiki with the features added or changed once this PR is merged.
Note: If you don't have wiki access, then please mention your contribution on the 0.19 Changelog Forum Thread.