Skip to content

Commit 253cca7

Browse files
authored
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>
1 parent 959f2db commit 253cca7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,6 @@ add_custom_target(sta_tags
606606
add_custom_command(
607607
TARGET OpenSTA
608608
POST_BUILD
609-
COMMAND ${CMAKE_SOURCE_DIR}/etc/FindMessages.tcl > ${CMAKE_SOURCE_DIR}/doc/messages.txt || true
609+
COMMAND cd ${CMAKE_CURRENT_LIST_DIR} && etc/FindMessages.tcl > ${CMAKE_CURRENT_LIST_DIR}/doc/messages.txt || true
610610
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
611611
)

0 commit comments

Comments
 (0)