Skip to content

Commit

Permalink
CMakeLists: set CMP0072 to NEW
Browse files Browse the repository at this point in the history
This prefers GLVND libraries by default and quiets a cmake developer warning.
  • Loading branch information
jzern authored Mar 8, 2022
1 parent 7bb269b commit e255c46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

cmake_minimum_required(VERSION 2.8.7)

# Prefer GLVND libraries by default.
if(POLICY CMP0072)
cmake_policy(SET CMP0072 NEW)
endif()

project(sjpeg
LANGUAGES C CXX)
set(CMAKE_C_STANDARD 99)
Expand Down

0 comments on commit e255c46

Please sign in to comment.