1
0
mirror of synced 2025-02-08 23:09:36 +01:00

build: Don't set EXPORT_SYMBOLS when doing an external plugin build

This commit is contained in:
WerWolv 2025-02-03 21:33:41 +01:00
parent 3f470aabe9
commit d8b36242f6

View File

@ -16,6 +16,8 @@ add_subdirectory(ColorTextEditor)
set(IMGUI_LIBRARIES imgui_imgui imgui_cimgui imgui_implot imgui_implot3d imgui_imnodes imgui_backend imgui_color_text_editor)
set(IMGUI_LIBRARIES ${IMGUI_LIBRARIES} PARENT_SCOPE)
foreach (LIBRARY IN LISTS IMGUI_LIBRARIES)
target_compile_definitions(${LIBRARY} PRIVATE EXPORT_SYMBOLS=1)
endforeach ()
if (NOT IMHEX_EXTERNAL_PLUGIN_BUILD)
foreach (LIBRARY IN LISTS IMGUI_LIBRARIES)
target_compile_definitions(${LIBRARY} PRIVATE EXPORT_SYMBOLS=1)
endforeach ()
endif()