enable FREECAD_RELEASE_PDB by default, cleanup cmake file, improve whiespaces
This commit is contained in:
@@ -166,11 +166,12 @@ MESSAGE(STATUS "datadir: ${CMAKE_INSTALL_DATADIR}")
|
||||
MESSAGE(STATUS "docdir: ${CMAKE_INSTALL_DOCDIR}")
|
||||
MESSAGE(STATUS "includedir: ${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
MESSAGE(STATUS "libdir: ${CMAKE_INSTALL_LIBDIR}")
|
||||
MESSAGE(STATUS "cmake: ${CMAKE_VERSION}")
|
||||
|
||||
# ==============================================================================
|
||||
# == Win32 is default behaviour use the LibPack copied in Source tree ==========
|
||||
if(MSVC)
|
||||
OPTION(FREECAD_RELEASE_PDB "Create PDB file for Release version." OFF)
|
||||
OPTION(FREECAD_RELEASE_PDB "Create PDB file for Release version." ON)
|
||||
OPTION(FREECAD_LIBPACK_USE "Use the LibPack to Build FreeCAD (only Win32 so far)." ON)
|
||||
OPTION(FREECAD_LIBPACK_USEPYSIDE "Use PySide in LibPack rather to PyQt and Swig." ON)
|
||||
set(FREECAD_LIBPACK_DIR ${CMAKE_SOURCE_DIR} CACHE PATH "Directory of the FreeCAD LibPack")
|
||||
@@ -376,16 +377,6 @@ if(FREECAD_LIBPACK_USE)
|
||||
IF(FREECAD_LIBPACK_CHECKFILE_CLBUNDLER)
|
||||
set(FREECAD_LIBPACK_VERSION "CLbundler" CACHE STRING "Displays if the libpack has been found" FORCE)
|
||||
include(cMake/UseLibPackCLbundler.cmake)
|
||||
ELSEIF(FREECAD_LIBPACK_CHECKFILE6X)
|
||||
set(FREECAD_LIBPACK_VERSION "6.x" CACHE STRING "Displays if the libpack has been found" FORCE)
|
||||
include(cMake/UseLibPack6x.cmake)
|
||||
ELSEIF(FREECAD_LIBPACK_CHECKFILE7X)
|
||||
set(FREECAD_LIBPACK_VERSION "7.x" CACHE STRING "Displays if the libpack has been found" FORCE)
|
||||
include(cMake/UseLibPack7x.cmake)
|
||||
ELSEIF(FREECAD_LIBPACK_CHECKFILE8X)
|
||||
set(FREECAD_LIBPACK_VERSION "8.x" CACHE STRING "Displays if the libpack has been found" FORCE)
|
||||
include(cMake/UseLibPack8x.cmake)
|
||||
set(SWIG_EXECUTABLE ${FREECAD_LIBPACK_DIR}/tools/swigwin-1.3.40/swig.exe CACHE STRING "Swig" FORCE)
|
||||
ELSEIF(FREECAD_LIBPACK_CHECKFILE9X)
|
||||
set(FREECAD_LIBPACK_VERSION "9.x" CACHE STRING "Displays if the libpack has been found" FORCE)
|
||||
include(cMake/UseLibPack9x.cmake)
|
||||
|
||||
@@ -1100,8 +1100,9 @@ void StdCmdDelete::activated(int iMsg)
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
}
|
||||
}
|
||||
else {
|
||||
// check if we can delete the object - linked objects
|
||||
std::set<QString> affectedLabels;
|
||||
for (std::vector<Gui::SelectionObject>::iterator ft = sel.begin(); ft != sel.end(); ++ft) {
|
||||
|
||||
@@ -1256,7 +1256,7 @@ void DocumentItem::slotChangeObject(const Gui::ViewProviderDocumentObject& view)
|
||||
void DocumentItem::slotRenameObject(const Gui::ViewProviderDocumentObject& obj)
|
||||
{
|
||||
// Do nothing here because the Label is set in slotChangeObject
|
||||
Q_UNUSED(obj);
|
||||
Q_UNUSED(obj);
|
||||
}
|
||||
|
||||
void DocumentItem::slotActiveObject(const Gui::ViewProviderDocumentObject& obj)
|
||||
@@ -1396,21 +1396,6 @@ const Gui::Document* DocumentItem::document() const
|
||||
// }
|
||||
//}
|
||||
|
||||
//void DocumentItem::markItem(const App::DocumentObject* Obj,bool mark)
|
||||
//{
|
||||
// // never call without Object!
|
||||
// assert(Obj);
|
||||
//
|
||||
//
|
||||
// std::map<std::string,DocumentObjectItem*>::iterator pos;
|
||||
// pos = ObjectMap.find(Obj->getNameInDocument());
|
||||
// if (pos != ObjectMap.end()) {
|
||||
// QFont f = pos->second->font(0);
|
||||
// f.setUnderline(mark);
|
||||
// pos->second->setFont(0,f);
|
||||
// }
|
||||
//}
|
||||
|
||||
void DocumentItem::testStatus(void)
|
||||
{
|
||||
FOREACH_ITEM_ALL(item);
|
||||
|
||||
Reference in New Issue
Block a user