Git Product home page Git Product logo

Comments (6)

janekb04 avatar janekb04 commented on July 20, 2024 1

The issue is caused by find_package(OpenGL REQUIRED) in line 39. Currently I have solved it in my code with set(CMAKE_POLICY_DEFAULT_CMP0072 NEW).

from glew-cmake.

nigels-com avatar nigels-com commented on July 20, 2024

Thanks!

from glew-cmake.

janekb04 avatar janekb04 commented on July 20, 2024

@Perlmint I saw that in the referenced commit, you set the policy to LEGACY. Shouldn't it be set to NEW instead to use the new OpenGL libraries instead of the legacy ones?

from glew-cmake.

janekb04 avatar janekb04 commented on July 20, 2024

I think it should be set to NEW as the CMake documentation states that the OLD behaviour is deprecated and may be removed.

from glew-cmake.

Perlmint avatar Perlmint commented on July 20, 2024

@Perlmint I saw that in the referenced commit, you set the policy to LEGACY. Shouldn't it be set to NEW instead to use the new OpenGL libraries instead of the legacy ones?

Hmm... Actually, OpenGL_GL_PREFERENCE doesn't affect this cmake - I noticed after pushing it 😭 . I selected LEGACY to avoid changing any behaviour. I just wanted to avoid the warning.

I think it should be set to NEW as the CMake documentation states that the OLD behaviour is deprecated and may be removed.

You're right. It should be changed to NEW at last. I'll change it soon.

Thanks a lot!

from glew-cmake.

Perlmint avatar Perlmint commented on July 20, 2024

Using GLVND at a791155 - same behaviour as NEW of CMP0072

from glew-cmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.