try always exporting

This commit is contained in:
Green Sky 2024-05-28 11:26:46 +02:00
parent fb5397097b
commit ab8cc6dde1
No known key found for this signature in database

View File

@ -25,7 +25,9 @@ message("II SOLANACEAE_ECOSYSTEM_BUILD_TESTING " ${SOLANACEAE_ECOSYSTEM_BUILD_TE
if (SOLANACEAE_ECOSYSTEM_BUILD_PLUGINS) if (SOLANACEAE_ECOSYSTEM_BUILD_PLUGINS)
# uggly, but it needs to be defined for all dependencies too # uggly, but it needs to be defined for all dependencies too
# but this also means that we can not compile a host in the same cmake run as plugins # but this also means that we can not compile a host in the same cmake run as plugins
add_compile_definitions(ENTT_API_IMPORT) #add_compile_definitions(ENTT_API_IMPORT)
# what if its always export?
add_compile_definitions(ENTT_API_EXPORT)
else() else()
add_compile_definitions(ENTT_API_EXPORT) add_compile_definitions(ENTT_API_EXPORT)
endif() endif()
@ -67,5 +69,7 @@ endif()
# cmake setup end # cmake setup end
add_subdirectory(./plugins) if (SOLANACEAE_ECOSYSTEM_BUILD_PLUGINS)
add_subdirectory(./plugins)
endif()