Skip to content

Commit 8ed1bb6

Browse files
Merge pull request #286 from fredroy/fix_gui_qt_macro
[Sofa.Gui] Fix macro to enable qt.conf
2 parents a579d22 + f06b8af commit 8ed1bb6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bindings/SofaGui/src/SofaPython3/SofaGui/Module_SofaGui.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
#include <sofa/helper/system/FileSystem.h>
2828
using sofa::helper::system::FileSystem;
2929

30-
#if SOFAGUI_HAVE_SOFAGUIQT
30+
#if SOFAGUI_HAVE_SOFA_GUI_QT
3131
#include <sofa/gui/qt/qt.conf.h>
32-
#endif // SOFAGUI_HAVE_SOFAGUIQT
32+
#endif // SOFAGUI_HAVE_SOFA_GUI_QT
3333

3434
#include "Binding_BaseGui.h"
3535
#include "Binding_GUIManager.h"
@@ -63,7 +63,7 @@ PYBIND11_MODULE(Gui, m) {
6363
:members:
6464
)doc";
6565

66-
#if SOFAGUI_HAVE_SOFAGUIQT
66+
#if SOFAGUI_HAVE_SOFA_GUI_QT
6767
std::string sofaPrefixAbsolute = sofa::helper::Utils::getSofaPathPrefix();
6868
std::string inputFilepath = FileSystem::cleanPath(sofaPrefixAbsolute + "/bin/qt.conf");
6969
bool success = sofa::gui::qt::loadQtConfWithCustomPrefix(inputFilepath, sofaPrefixAbsolute);
@@ -81,7 +81,7 @@ PYBIND11_MODULE(Gui, m) {
8181
}
8282
std::cout << std::endl;
8383
}
84-
#endif // SOFAGUI_HAVE_SOFAGUIQT
84+
#endif // SOFAGUI_HAVE_SOFA_GUI_QT
8585

8686
// This is needed to make sure the GuiMain library (libSofaGuiMain.so) is correctly
8787
// linked since the GUIs are statically created during the load of the library.

0 commit comments

Comments
 (0)