Define WXINSPECTOR_DISABLE globally to prevent include-order-dependent class layout (#15063)

fix: define WXINSPECTOR_DISABLE globally to prevent include-order-dependent class layouts
This commit is contained in:
Dipl.-Ing. Raoul Rubien, BSc
2026-08-02 12:20:35 +02:00
committed by GitHub
parent 6f3ca7d1b9
commit f9fa1c117f
2 changed files with 4 additions and 5 deletions

View File

@@ -80,8 +80,12 @@ endif()
if (DEFINED BBL_RELEASE_TO_PUBLIC)
add_compile_definitions("BBL_RELEASE_TO_PUBLIC=${BBL_RELEASE_TO_PUBLIC}")
if (BBL_RELEASE_TO_PUBLIC)
add_compile_definitions(WXINSPECTOR_DISABLE)
endif ()
else ()
add_compile_definitions("BBL_RELEASE_TO_PUBLIC=$<CONFIG:Release>")
add_compile_definitions("$<$<CONFIG:Release>:WXINSPECTOR_DISABLE>")
endif ()
find_package(Git)

View File

@@ -51,9 +51,4 @@
// Enable extension of tool position imgui dialog to show actual speed profile
#define ENABLE_ACTUAL_SPEED_DEBUG 1
// Disable layout inspector for public release
#if BBL_RELEASE_TO_PUBLIC
#define WXINSPECTOR_DISABLE
#endif
#endif // _prusaslicer_technologies_h_