From 9870b146402c389e6babbf566adce0f8c555c36c Mon Sep 17 00:00:00 2001 From: Vitor Bandeira Date: Fri, 12 Sep 2025 12:52:55 -0300 Subject: [PATCH] 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 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 65d9c62b..35caa594 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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} )