Merge branch 'clangcast' into 'master'

Export symbols for openmw binary under Clang (#8039)

Closes #8039

See merge request OpenMW/openmw!4722
This commit is contained in:
Evil Eye 2025-06-22 06:17:25 +00:00
commit a524b3c9b0

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