Skip to content

Commit 86a8c60

Browse files
committed
pnr/openroad: find installed tcl library
1 parent 242d803 commit 86a8c60

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

pnr/openroad/find-tcl-library.patch

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
diff --git a/src/dpl/CMakeLists.txt b/src/dpl/CMakeLists.txt
2+
index bd2ab1b56..5d7a47b63 100644
3+
--- a/src/dpl/CMakeLists.txt
4+
+++ b/src/dpl/CMakeLists.txt
5+
@@ -37,7 +37,7 @@
6+
###########################################################################
7+
8+
include("openroad")
9+
-
10+
+find_package(TCL)
11+
12+
add_library(dpl_lib
13+
src/Opendp.cpp
14+
@@ -53,7 +53,7 @@ target_link_libraries(dpl_lib
15+
PUBLIC
16+
odb
17+
OpenSTA
18+
- tcl
19+
+ ${TCL_LIBRARY}
20+
PRIVATE
21+
utl
22+
)
23+
diff --git a/src/dst/CMakeLists.txt b/src/dst/CMakeLists.txt
24+
index bbce29086..b3077513e 100644
25+
--- a/src/dst/CMakeLists.txt
26+
+++ b/src/dst/CMakeLists.txt
27+
@@ -34,6 +34,7 @@
28+
###############################################################################
29+
include("openroad")
30+
include(FindZLIB)
31+
+find_package(TCL)
32+
33+
project(dst
34+
LANGUAGES CXX
35+
@@ -64,7 +65,7 @@ target_link_libraries(dst
36+
PUBLIC
37+
utl
38+
OpenSTA
39+
- tcl
40+
+ ${TCL_LIBRARY}
41+
${ZLIB_LIBRARIES}
42+
Boost::serialization
43+
Boost::system

pnr/openroad/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ source:
1313
- sta-add-install-options.patch # to enable sta binary distribution
1414
- disable-mpl2-and-par.patch # until or-tools dep is added
1515
- remove-boost-span-deps.patch # to allow older boost
16+
- find-tcl-library.patch # to find installed tcl library
1617
- url: http://lemon.cs.elte.hu/pub/sources/lemon-{{ lemon_version }}.tar.gz
1718
md5: {{ lemon_md5 }}
1819
folder: third_party/lemon

0 commit comments

Comments
 (0)