Revert "Disable SNAN/FPE for rendering thread"

This reverts commit 8fb0cdbc5ac0c26b42449c8a8b17c4141f946c34.
remove cmake code duplication