From d9504ce13b1314e44e5178e02c4f8356c8506f0d Mon Sep 17 00:00:00 2001 From: James Perlman Date: Wed, 8 Feb 2023 14:43:00 -0800 Subject: [PATCH] Use CMP0077 Thanks so much for making this project! I'm using CMake 3.24+, and I was getting some errors like in [this issue (zephyr/26142)](https://github.com/zephyrproject-rtos/zephyr/issues/26142), and fixed them using CMP0077 - Did I do this correctly? --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ebbb88..6083d35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,10 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) include("GeneratePkgConfig.cmake") +if (POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) +endif() + option(glew-cmake_BUILD_SHARED "Build the shared glew library" ON) option(glew-cmake_BUILD_STATIC "Build the static glew library" ON) option(USE_GLU "Use GLU" OFF)