mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
build: Don't set EXPORT_SYMBOLS when doing an external plugin build
This commit is contained in:
8
lib/third_party/imgui/CMakeLists.txt
vendored
8
lib/third_party/imgui/CMakeLists.txt
vendored
@@ -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()
|
||||
Reference in New Issue
Block a user