Skip to content

Commit

Permalink
Fix cleanup of SecurityBaseline module test recipe (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwoj-microsoft authored Feb 13, 2025
1 parent 02fd17e commit 3c957d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ set(MOFS
)

add_custom_command(
OUTPUT ${SRC}/SecurityBaselineTests.json
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/SecurityBaselineTests.json.stamp
DEPENDS ${SRC}/create-asb-json.sh ${SRC}/mof-to-json.awk ${SRC}/SecurityBaselineTests.json-header ${SRC}/SecurityBaselineTests.json-mid ${SRC}/SecurityBaselineTests.json-footer ${MOFS}
COMMAND ./create-asb-json.sh ${MOFS} >${SRC}/SecurityBaselineTests.json
COMMAND ./create-asb-json.sh ${MOFS} >${SRC}/SecurityBaselineTests.json && touch ${CMAKE_CURRENT_BINARY_DIR}/SecurityBaselineTests.json.stamp
WORKING_DIRECTORY ${SRC}
)
add_custom_target(generate-asb-test-json
DEPENDS ${SRC}/SecurityBaselineTests.json
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/SecurityBaselineTests.json.stamp
)

0 comments on commit 3c957d0

Please sign in to comment.