mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
cmake - remove cmake_policies superseded by cmake_minimum_required
Our minimum cmake version is 3.21, so policies below use `NEW` by default already: - CMP0048 - VERSION option support for `project`, introduced in 3.0 - CMP0074 - find_package() uses <PackageName>_ROOT variables, introduced in 3.12 - CMP0078 - UseSWIG generates standard target names, introduced in 3.13 - CMP0086 - UseSWIG honors SWIG_MODULE_NAME via -module flag, introduced in 3.14
This commit is contained in:
@@ -34,10 +34,6 @@ endif()
|
||||
|
||||
add_definitions(-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
|
||||
|
||||
cmake_policy(SET CMP0048 NEW)
|
||||
cmake_policy(SET CMP0074 NEW)
|
||||
cmake_policy(SET CMP0078 NEW)
|
||||
cmake_policy(SET CMP0086 NEW)
|
||||
if (POLICY CMP0144)
|
||||
cmake_policy(SET CMP0144 NEW) # find_package() uses upper-case <PACKAGENAME>_ROOT variables.
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user