Skip to content

Commit

Permalink
build: Don't set EXPORT_SYMBOLS when doing an external plugin build
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Feb 3, 2025
1 parent 3f470aa commit d8b3624
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/third_party/imgui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit d8b3624

Please sign in to comment.