Use STA_HOME instead of CMAKE_SOURCE_DIR (#296)

When using OpenSTA as a submodule/external dependency CMAKE_SOURCE_DIR
resolves to the root of the top project instead of OpenSTA's. Using
STA_HOME resolves the path correctly and is used in other places in the
project already.

Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
This commit is contained in:
Vitor Bandeira 2025-09-12 12:52:55 -03:00 committed by GitHub
parent 30c8230f68
commit 9870b14640
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -613,6 +613,6 @@ add_custom_target(sta_tags
add_custom_command(
TARGET OpenSTA
POST_BUILD
COMMAND ${CMAKE_SOURCE_DIR}/etc/FindMessages.tcl > ${CMAKE_SOURCE_DIR}/doc/messages.txt || true
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND ${STA_HOME}/etc/FindMessages.tcl > ${STA_HOME}/doc/messages.txt || true
WORKING_DIRECTORY ${STA_HOME}
)