mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
cmake: Remove redundant policy settings
The `cmake_minimum_required(VERSION 3.10)` command implicitly sets the following policies to NEW by default: - CMP0042 (introduced in CMake 3.0) - CMP0054 (introduced in CMake 3.1) - CMP0068 (introduced in CMake 3.9)
This commit is contained in:
parent
2d7a3b9b6a
commit
e36398f137
@ -21,15 +21,6 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
|
||||
|
||||
if (POLICY CMP0042)
|
||||
cmake_policy(SET CMP0042 NEW) # MACOSX_RPATH is enabled by default.
|
||||
endif()
|
||||
if (POLICY CMP0054)
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
endif()
|
||||
if (POLICY CMP0068)
|
||||
cmake_policy(SET CMP0068 NEW) # RPATH settings on macOS do not affect install_name.
|
||||
endif()
|
||||
if (POLICY CMP0074)
|
||||
cmake_policy(SET CMP0074 NEW)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user