diff --git a/CMakeLists.txt b/CMakeLists.txt index a94e1e05..52ef2661 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -606,6 +606,6 @@ add_custom_target(sta_tags add_custom_command( TARGET OpenSTA POST_BUILD - COMMAND cd ${CMAKE_CURRENT_LIST_DIR} && etc/FindMessages.tcl > ${CMAKE_CURRENT_LIST_DIR}/doc/messages.txt || true + COMMAND ${CMAKE_SOURCE_DIR}/etc/FindMessages.tcl > ${CMAKE_SOURCE_DIR}/doc/messages.txt || true WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} )