Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jjcherry56/OpenSTA
Browse files Browse the repository at this point in the history
  • Loading branch information
openroadie committed Mar 29, 2023
2 parents 19aa8e4 + afb5a91 commit e16874d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
36 changes: 21 additions & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,10 @@ configure_file(${STA_HOME}/util/StaConfig.hh.cmake
# compatibility with configure
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${STA_HOME}/app)

add_library(OpenSTA
add_library(OpenSTA)

target_sources(OpenSTA
PRIVATE
${STA_SOURCE}

${STA_TCL_INIT}
Expand All @@ -493,6 +496,23 @@ add_library(OpenSTA
${BISON_VerilogParser_OUTPUTS}
)

target_link_libraries(OpenSTA
${TCL_LIBRARY}
${CMAKE_THREAD_LIBS_INIT}
)

if (TCL_READLINE_LIBRARY)
target_link_libraries(OpenSTA ${TCL_READLINE_LIBRARY})
endif()

if (ZLIB_LIBRARIES)
target_link_libraries(OpenSTA ${ZLIB_LIBRARIES})
endif()

if (CUDD_LIB)
target_link_libraries(OpenSTA ${CUDD_LIB})
endif()

target_include_directories(OpenSTA
PUBLIC
include
Expand Down Expand Up @@ -534,22 +554,8 @@ add_executable(sta app/Main.cc)
target_link_libraries(sta
sta_swig
OpenSTA
${TCL_LIBRARY}
${CMAKE_THREAD_LIBS_INIT}
)

if (TCL_READLINE_LIBRARY)
target_link_libraries(sta ${TCL_READLINE_LIBRARY})
endif()

if (ZLIB_LIBRARIES)
target_link_libraries(sta ${ZLIB_LIBRARIES})
endif()

if (CUDD_LIB)
target_link_libraries(sta ${CUDD_LIB})
endif()

message(STATUS "STA executable: ${STA_HOME}/app/sta")

################################################################
Expand Down
2 changes: 1 addition & 1 deletion network/ConcreteLibrary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class BusPort
BusPort::BusPort(const char *name,
int from,
PortDirection *direction) :
name_(name),
name_(stringCopy(name)),
from_(from),
to_(from),
direction_(direction),
Expand Down

0 comments on commit e16874d

Please sign in to comment.