Allow messages.txt to be generated also when OpenSTA makefile is not the top module. (#270)

Like in OpenROAD.

Signed-off-by: Christian Costa <titan.costa@gmail.com>
This commit is contained in:
Christian Costa 2025-07-27 06:25:02 +02:00 committed by GitHub
parent 959f2dbb6a
commit 253cca73ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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