Skip to content

Commit

Permalink
Make sure target dependencies are in order
Browse files Browse the repository at this point in the history
  • Loading branch information
ShukantPal committed Nov 3, 2023
1 parent 83f01de commit 774b988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/docs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function( CreateDocPyktxWrappers )
COMMAND
${CMAKE_COMMAND} -E copy_directory ${KTX_BUILD_DIR}/interface/python_binding/docs/html/pyktx/html ${KTX_BUILD_DIR}/docs/html/pyktx
)
add_dependencies( libktx.doc pyktx )
add_dependencies( libktx.doc pyktx-dev )
endfunction()

# ktxpkg.doc
Expand Down
3 changes: 2 additions & 1 deletion interface/python_binding/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ add_custom_target( pyktx ALL
pyktx/ktx_texture.c
pyktx/ktx_texture1.c
pyktx/ktx_texture2.c
${LIBKTX_LIB_DIR}
WORKING_DIRECTORY
${CMAKE_SOURCE_DIR}/interface/python_binding
COMMENT
Expand Down Expand Up @@ -125,7 +126,7 @@ add_custom_command(
WORKING_DIRECTORY
${CMAKE_SOURCE_DIR}/interface/python_binding
)
add_dependencies(ktx pyktx-dev)
add_dependencies(pyktx-dev ktx)

if(KTX_FEATURE_DOC)
add_custom_command(
Expand Down

0 comments on commit 774b988

Please sign in to comment.