1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

CMake: Silence CMP0048 warnings

When libwebsockets is included as a subdirectory in other projects that rely on a minimum CMake version of 3.x, a CMP0048 policy warning will be raised due to the project not specifying a version in the project call.

This patch silences the warning by explicitly setting the policy within libwebsockets to NEW if it has already been forwarded as such, without any further impact on the behavior of CMake.
This commit is contained in:
Valentin B 2020-04-21 01:33:33 +02:00 committed by Andy Green
parent dc3a1123fc
commit 3a6ce18feb

View file

@ -1,5 +1,9 @@
cmake_minimum_required(VERSION 2.8.9)
if(POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif()
# General Advice
#
# For selecting between DEBUG / RELEASE, use -DCMAKE_BUILD_TYPE=DEBUG or =RELEASE