Skip to content

Commit

Permalink
odb: Move messages checking to odb to fix deps.
Browse files Browse the repository at this point in the history
The messages checking was set at db level as odb is an interface and
doesn't not have a post-build trigger. Unfortunately there were no
dependencies on other libs besides db such as defin.
So peforms the messages checking at odb level using a custom target.
  • Loading branch information
titan73 committed Sep 8, 2024
1 parent 9c48043 commit beb1fb3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
16 changes: 16 additions & 0 deletions src/odb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,19 @@ if(ENABLE_TESTS)
odb
)
endif()

add_custom_target(
odb_messages ${CMAKE_SOURCE_DIR}/etc/find_messages.py > messages.txt
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS
db
cdl
defin
defout
lefin
lefout
zutil
gdsin
)

add_dependencies(odb odb_messages)
6 changes: 0 additions & 6 deletions src/odb/src/db/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,3 @@ target_link_libraries(db
utl_lib
${TCL_LIBRARY}
)

messages(
TARGET db
OUTPUT_DIR ../..
SOURCE_DIR ../..
)

0 comments on commit beb1fb3

Please sign in to comment.