save list of files used for compilation

helpful for debugging and creating automated documentation
This commit is contained in:
Martin Diehl 2021-10-15 22:15:08 +02:00
parent c628c028dc
commit 519bb857d7
1 changed files with 4 additions and 0 deletions

View File

@ -29,3 +29,7 @@ else()
exec_program(mktemp ARGS -d OUTPUT_VARIABLE black_hole)
install(PROGRAMS ${nothing} DESTINATION ${black_hole})
endif()
string(REPLACE ";" "\n" sources "${damask-sources};${solver-sources}")
message(${CMAKE_BINARY_DIR})
file(WRITE ${CMAKE_BINARY_DIR}/sources.txt ${sources})