projectmanager_clang.cmake 406 B

123456789101112131415161718
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. # The macro PYBIND11_EMBEDDED_MODULE uses a try catch block
  9. if(MSVC)
  10. set(LY_COMPILE_OPTIONS PRIVATE /EHsc)
  11. else()
  12. set(LY_COMPILE_OPTIONS
  13. PRIVATE
  14. -fexceptions
  15. )
  16. endif()