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:
parent
30c8230f68
commit
9870b14640
|
|
@ -613,6 +613,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 ${STA_HOME}/etc/FindMessages.tcl > ${STA_HOME}/doc/messages.txt || true
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${STA_HOME}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue