From ba4dabe2e6852d45290d8915136dfb383710fc57 Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Mon, 6 May 2024 11:51:58 +0200 Subject: [PATCH] define IMGUI_BUNDLE_PYTHON_UNSUPPORTED_API for test engine --- .../hello_imgui_test_engine_cmake.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hello_imgui_test_engine_integration/hello_imgui_test_engine_cmake.cmake b/src/hello_imgui_test_engine_integration/hello_imgui_test_engine_cmake.cmake index 7ce18a48..d4c6c85f 100644 --- a/src/hello_imgui_test_engine_integration/hello_imgui_test_engine_cmake.cmake +++ b/src/hello_imgui_test_engine_integration/hello_imgui_test_engine_cmake.cmake @@ -48,6 +48,10 @@ function(_add_imgui_test_engine_lib) IMGUI_STB_IMAGE_WRITE_FILENAME="${HELLOIMGUI_BASEPATH}/external/stb_hello_imgui/stb_image_write.h" ) + # We use a specific branch of the test engine (imgui_bundle) + # IMGUI_BUNDLE_PYTHON_UNSUPPORTED_API is a marker for C++ only API, and should always be defined in C++. + target_compile_definitions(imgui_test_engine PUBLIC IMGUI_BUNDLE_PYTHON_UNSUPPORTED_API) + # install test_engine headers if(HELLOIMGUI_INSTALL) file(GLOB te_headers ${te_source_folder}/*.h)