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:
Hennadii Stepanov 2024-11-16 21:35:53 +00:00
parent 2d7a3b9b6a
commit e36398f137
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -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()