mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-22 06:35:07 +00:00
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?
This commit is contained in:
parent
94b823ee04
commit
d9504ce13b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user