1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-01 14:04:30 +00:00

Export symbols for openmw binary under Clang (#8039)

This commit is contained in:
Alexei Kotov 2025-06-19 13:50:15 +03:00
parent efbef1ec96
commit 5938ba528f

View file

@ -138,6 +138,12 @@ if(BUILD_OPENMW)
endif()
target_link_libraries(openmw openmw-lib)
# Workaround necessary to ensure osgAnimation::MatrixLinearSampler dynamic casts work under Clang
# NOTE: it's unclear whether the broken behavior is spec-compliant
if (CMAKE_CXX_COMPILER_ID STREQUAL Clang)
set_target_properties(openmw PROPERTIES ENABLE_EXPORTS ON)
endif()
endif()
# Sound stuff - here so CMake doesn't stupidly recompile EVERYTHING