try improve entt across-boundry support

This commit is contained in:
Green Sky 2024-05-18 12:28:33 +02:00
parent 2095bc6889
commit 35026dfa0f
No known key found for this signature in database
2 changed files with 9 additions and 0 deletions

View File

@ -38,6 +38,10 @@ if (TOMATO_ASAN)
endif() endif()
endif() endif()
# uggly, but it needs to be defined for all of tomato.
# but this also means that we can not compile tomato in the same cmake as plugins
add_compile_definitions(ENTT_API_EXPORT)
# external libs # external libs
add_subdirectory(./external) # before increasing warn levels, sad :( add_subdirectory(./external) # before increasing warn levels, sad :(

View File

@ -105,3 +105,8 @@ target_link_libraries(tomato PUBLIC
SDL3_image::SDL3_image SDL3_image::SDL3_image
) )
# probably not enough
#target_compile_definitions(tomato PUBLIC ENTT_API_EXPORT)
set_target_properties(tomato PROPERTIES POSITION_INDEPENDENT_CODE ON)