build: Don't set EXPORT_SYMBOLS when doing an external plugin build
This commit is contained in:
parent
3f470aabe9
commit
d8b36242f6
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()
|
Loading…
x
Reference in New Issue
Block a user