Skip to content

Commit 104bfce

Browse files
authored
CMakeLists: fix dependency on Microsoft-ETW-ESE.man (#14)
The CMakeLists.txt configuration in `src\_etw` specifies the non-existing DEPENDS input when calling the message compiler for Microsoft-ETW-ESE.man. This causes the following error during rebuild — most likely due to an incorrect build order: Generating ../../../../gen/_etw/Microsoft-ETW-ESE.h, ../../../../gen/_etw/Microsoft-ETW-ESE.rc mc : error : 0x2 trying to open file <[...]/build/gen/_etw/Microsoft-ETW-ESE.man>. Fix this by making the command depend on `Microsoft-ETW-ESE.man`.
1 parent 5d91f9c commit 104bfce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dev/ese/src/_etw/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ add_custom_command(
1717
${GEN_OUTPUT_DIRECTORY}/_etw/Microsoft-ETW-ESE.h
1818
${GEN_OUTPUT_DIRECTORY}/_etw/Microsoft-ETW-ESE.rc
1919
COMMAND ${CMAKE_MESSAGE_COMPILER} -um ${GEN_OUTPUT_DIRECTORY}/_etw/Microsoft-ETW-ESE.man -h ${GEN_OUTPUT_DIRECTORY}/_etw -r ${GEN_OUTPUT_DIRECTORY}/_etw
20-
DEPENDS ${MC_INPUT}
20+
DEPENDS ${GEN_OUTPUT_DIRECTORY}/_etw/Microsoft-ETW-ESE.man
2121
)
2222

2323
add_custom_target(gen_etw

0 commit comments

Comments
 (0)