diff --git a/src/Mod/PartDesign/App/AppPartDesign.cpp b/src/Mod/PartDesign/App/AppPartDesign.cpp index 87ed33c03b..3ced52cdb8 100644 --- a/src/Mod/PartDesign/App/AppPartDesign.cpp +++ b/src/Mod/PartDesign/App/AppPartDesign.cpp @@ -63,7 +63,7 @@ extern PyObject* initModule(); } /* Python entry */ -PyMOD_INIT_FUNC(_PartDesign) +PyMOD_INIT_FUNC(PartDesign) { // load dependent module try { diff --git a/src/Mod/PartDesign/App/AppPartDesignPy.cpp b/src/Mod/PartDesign/App/AppPartDesignPy.cpp index a9473d999e..68b1d059cc 100644 --- a/src/Mod/PartDesign/App/AppPartDesignPy.cpp +++ b/src/Mod/PartDesign/App/AppPartDesignPy.cpp @@ -32,7 +32,7 @@ namespace PartDesign { class Module : public Py::ExtensionModule { public: - Module() : Py::ExtensionModule("_PartDesign") + Module() : Py::ExtensionModule("PartDesign") { add_varargs_method("makeFilletArc",&Module::makeFilletArc, "makeFilletArc(...) -- Fillet arc." diff --git a/src/Mod/PartDesign/App/CMakeLists.txt b/src/Mod/PartDesign/App/CMakeLists.txt index d74a77c1d5..278a57e3c5 100644 --- a/src/Mod/PartDesign/App/CMakeLists.txt +++ b/src/Mod/PartDesign/App/CMakeLists.txt @@ -144,16 +144,16 @@ SET(PartDesign_SRCS ${Python_SRCS} ) +if(FREECAD_USE_PCH) + add_definitions(-D_PreComp_) + GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${PartDesign_SRCS}) + ADD_MSVC_PRECOMPILED_HEADER(PartDesign PreCompiled.h PreCompiled.cpp PCH_SRCS) +endif(FREECAD_USE_PCH) + add_library(PartDesign SHARED ${PartDesign_SRCS}) target_link_libraries(PartDesign ${PartDesign_LIBS}) -if(FREECAD_USE_PCH) - add_definitions(-D_PreComp_) - GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PartDesign_CPP_SRCS ${PartDesign_SRCS}) - ADD_MSVC_PRECOMPILED_HEADER(PartDesign PreCompiled.h PreCompiled.cpp PartDesign_CPP_SRCS) -endif(FREECAD_USE_PCH) - -SET_BIN_DIR(PartDesign _PartDesign /Mod/PartDesign) +SET_BIN_DIR(PartDesign PartDesign /Mod/PartDesign) SET_PYTHON_PREFIX_SUFFIX(PartDesign) INSTALL(TARGETS PartDesign DESTINATION ${CMAKE_INSTALL_LIBDIR}) diff --git a/src/Mod/PartDesign/App/PreCompiled.cpp b/src/Mod/PartDesign/App/PreCompiled.cpp index 7cd1cae80f..cde4369c5b 100644 --- a/src/Mod/PartDesign/App/PreCompiled.cpp +++ b/src/Mod/PartDesign/App/PreCompiled.cpp @@ -20,5 +20,4 @@ * * ***************************************************************************/ - #include "PreCompiled.h" diff --git a/src/Mod/PartDesign/__init__.py b/src/Mod/PartDesign/__init__.py index 29a70ae509..20855033ff 100644 --- a/src/Mod/PartDesign/__init__.py +++ b/src/Mod/PartDesign/__init__.py @@ -1,3 +1,3 @@ -import _PartDesign -makeFilletArc = _PartDesign.makeFilletArc - +import PartDesign +makeFilletArc = PartDesign.makeFilletArc +