File: disable-CMP0042.patch

package info (click to toggle)
openmm 8.1.2%2Bdfsg-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 119,192 kB
  • sloc: xml: 377,325; cpp: 226,673; ansic: 42,767; python: 32,634; lisp: 2,441; sh: 440; makefile: 254; f90: 233; csh: 19
file content (22 lines) | stat: -rw-r--r-- 900 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: CMake no longer supports CMP0042 set to OLD:
  CMake Error at CMakeLists.txt:25 (CMAKE_POLICY):
    Policy CMP0042 may not be set to OLD behavior because this version of CMake
    no longer supports it.  The policy was introduced in CMake version 3.0.0,
    and use of NEW behavior is now required.

    Please either update your CMakeLists.txt files to conform to the new
    behavior or use an older version of CMake that still supports the old
    behavior.  Run cmake --help-policy CMP0042 for more information.
Bug-Debian: https://bugs.debian.org/1113359
Author: Andrius Merkys <merkys@debian.org>
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,7 +22,7 @@
 ENDIF( NOT PROJECT_NAME )
 
 CMAKE_MINIMUM_REQUIRED(VERSION 3.17)
-CMAKE_POLICY(SET CMP0042 OLD)
+# CMAKE_POLICY(SET CMP0042 OLD)
 CMAKE_POLICY(SET CMP0003 NEW)
 CMAKE_POLICY(SET CMP0005 NEW)
 CMAKE_POLICY(SET CMP0011 NEW)