Perlmint / glew-cmake

GLEW(https://github.com/nigels-com/glew, source updated nightly) with Cmake and pre-generated sources
Other
234 stars 95 forks source link

set a cmake policy #39

Closed Jtaim closed 3 years ago

Jtaim commented 3 years ago

I'm using as submodule in my project using CMAKE version 3.19.4. Get a warning about CMP0048.

Can a policy be set in glews CMakeLists.tx to supress this warning? CMakeLists.txt

cmake_minimum_required(VERSION 2.8.12)

if (POLICY CMP0048) cmake_policy(SET CMP0048 NEW) endif()

project("glew")

Perlmint commented 3 years ago

Thank you for the suggestion. I changed the way of specifying the project version in a new way and set CMP0048 new. It is included in PR.