Replies: 2 comments
-
I found that I can fix it by completely removing these lines completely from Jolt.cmake, but this is obviously not ideal: ` Setting floating point exceptionsif (FLOATING_POINT_EXCEPTIONS_ENABLED AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") |
Beta Was this translation helpful? Give feedback.
-
You should just add |
Beta Was this translation helpful? Give feedback.
-
How do I properly disable JPH_FLOATING_POINT_EXCEPTIONS_ENABLED ? I edited CMakeLists.txt to read as such:
option(FLOATING_POINT_EXCEPTIONS_ENABLED "Enable floating point exceptions" OFF)
But when I build my application and link jolt.lib, I get a runtime error that there is a mismatch with JPH_FLOATING_POINT_EXCEPTIONS_ENABLED. Of course, I can add this preprocessor define to my own application build pipeline and it works, but I want to disable this feature. (It's causing exceptions for stuff like comparing dot products of near-identical vectors)
Beta Was this translation helpful? Give feedback.
All reactions