From 253cca73ff0dfe85fa0b621dda4e796883045776 Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Sun, 27 Jul 2025 06:25:02 +0200 Subject: [PATCH] Allow messages.txt to be generated also when OpenSTA makefile is not the top module. (#270) Like in OpenROAD. Signed-off-by: Christian Costa --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 52ef2661..a94e1e05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -606,6 +606,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 + COMMAND cd ${CMAKE_CURRENT_LIST_DIR} && etc/FindMessages.tcl > ${CMAKE_CURRENT_LIST_DIR}/doc/messages.txt || true WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} )