CMake: Fix amalgamated tables generation on change (#6832)

The list of spec files, dependency of the amalgamated table generation,
was incorrectly specified.
When a list is used in a DEPENDS argument, all the components of
the argument should be a list.
Using double quotes breaks that.
This commit is contained in:
Stefano Bonicatti 2020-12-22 03:40:47 +01:00 committed by GitHub
parent 6e9f8720ae
commit 8eda456bc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,7 +202,7 @@ function(generateTableCategoryAmalgamation category_name)
OUTPUT "${amalgamation_file}"
COMMAND "${CMAKE_COMMAND}" -E env "PYTHONPATH=${OSQUERY_PYTHON_PATH}" "${OSQUERY_PYTHON_EXECUTABLE}" "${CMAKE_SOURCE_DIR}/tools/codegen/amalgamate.py" --templates "${CMAKE_SOURCE_DIR}/tools/codegen/templates" ${amalgamation_type} --sources "${generateTables_output}" --output "${amalgamation_file}"
COMMENT "Generating amalgamation file for the ${category_name} tables..."
DEPENDS "${category_spec_files}" ${generateTables_targetList}
DEPENDS ${category_spec_files} ${generateTables_targetList}
)
# Build the library