Unbreak opensta with cmake 3.19

Diff from maintainer, thanks
This commit is contained in:
rsadowski 2021-01-02 08:49:37 +00:00
parent ccbd5619b6
commit 7a91299a48
2 changed files with 16 additions and 1 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.8 2020/09/25 19:00:10 sthen Exp $
# $OpenBSD: Makefile,v 1.9 2021/01/02 08:49:37 rsadowski Exp $
COMMENT = Parallax Static Timing Analyzer
GH_ACCOUNT = The-OpenROAD-Project
GH_PROJECT = OpenSTA
GH_TAGNAME = v2.2.0
REVISION = 0
PKGNAME = ${DISTNAME:L}
CATEGORIES = cad

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-CMakeLists_txt,v 1.1 2021/01/02 08:49:38 rsadowski Exp $
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -291,7 +291,7 @@ add_flex_bison_dependency(SdfLex SdfParser)
################################################################
-find_package(SWIG REQUIRED 3.0)
+find_package(SWIG 3.0 REQUIRED)
include(UseSWIG)
set(STA_SWIG_FILE app/StaApp.i)