Skip to content

Commit cdc3229

Browse files
Fix CMake 3.31.6 warnings
Remove some superfluous parameters, fixing: CMake Warning (dev) at doc/CMakeLists.txt:218 (add_custom_command): The following keywords are not supported when using add_custom_command(TARGET): DEPENDS. CMake Warning (dev) at doc/CMakeLists.txt:252 (add_custom_command): Keyword WORKING_DIRECTORY requires a value, but none was given. Pick-to: 6.10 Change-Id: I8212fc29241d7843f0708bd91f79976b5890ea52 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
1 parent e447cf9 commit cdc3229

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sources/pyside6/doc/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ if(DOC_OUTPUT_FORMAT STREQUAL "html")
221221
${CMAKE_CURRENT_BINARY_DIR}/../../shiboken6/doc/html
222222
${CMAKE_CURRENT_BINARY_DIR}/html/shiboken6
223223
COMMENT "Copying Shiboken docs..."
224-
DEPENDS "${DOC_DATA_DIR}/webxml/qtcore-index.webxml"
225224
VERBATIM)
226225
else()
227226
if(qhelpgenerator_binary)
@@ -233,7 +232,6 @@ else()
233232
COMMAND ${python_executable} ${PATCH_QHP_SCRIPT} -p -v pyside6 ${QHP_FILE}
234233
COMMAND "${qhelpgenerator_binary}" ${QHP_FILE}
235234
COMMENT "Generating QCH from a QHP file..."
236-
DEPENDS "${DOC_DATA_DIR}/webxml/qtcore-index.webxml"
237235
VERBATIM
238236
)
239237
else()
@@ -268,7 +266,6 @@ add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${DOC_BASE_DIR}/PySide6/Q
268266
--additional-documentation=${CMAKE_CURRENT_BINARY_DIR}/${DOC_BASE_DIR}/additionaldocs.lst
269267
--inheritance-file=${ENV_INHERITANCE_FILE}
270268
${global_typesystem}
271-
WORKING_DIRECTORY ${${module}_SOURCE_DIR}
272269
COMMENT "Running generator to generate documentation...")
273270
endif()
274271

0 commit comments

Comments
 (0)