Skip to content

[build] error: « numeric_limits » is not member of « std » #15

@Suryavarman

Description

@Suryavarman

Mageia 9
gcc 12.3.0
CMake 3.26.4
Yafaray: v3.5.1

Yafaray/include/core_api/surface.h:118:26: error: « numeric_limits » is not member of « std »
      118 |         else return std::numeric_limits<float>::infinity();`

To fix it:
Add this two lines in the main CMakeLists.txt just before ####### Options ########

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions