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:
parent
dc3a1123fc
commit
3a6ce18feb
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue