Skip to content

Commit

Permalink
FMU cmake output
Browse files Browse the repository at this point in the history
  • Loading branch information
ndim committed Nov 27, 2024
1 parent eb6737e commit 7040fb2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/build-helpers/buildinfo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ endfunction()

function(buildinfo_item KEY VAL)
cmake_parse_arguments(arg "" "" "" ${ARGN})
message(STATUS "BEGIN buildinfo_item")
message(STATUS " K,V: ${KEY}, ${VAL}")
# message(STATUS "BEGIN buildinfo_item")
# message(STATUS " K,V: ${KEY}, ${VAL}")
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/src/buildinfo-include.c"
" {\"AUTO-BUIDLINFO ${KEY}\", \"${VAL}\"},\n")
" {\"AUTO-BUILDINFO ${KEY}\", \"${VAL}\"},\n")
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/buildinfo-summary.txt"
" * ${KEY}: ${VAL}\n")
message(STATUS "END buildinfo_item")
# message(STATUS "END buildinfo_item")
endfunction()

function(buildinfo_output)
Expand All @@ -35,8 +35,9 @@ function(buildinfo_output)
#file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/buildinfo-summary.txt"
# "\nThe End.\n")
file(READ "${CMAKE_CURRENT_BINARY_DIR}/buildinfo-summary.txt" msg)
message("\n${msg}")
# message(STATUS "END buildinfo_output")
message("")
message(${msg})
message(STATUS "END buildinfo_output")
endfunction()

buildinfo_setup()

0 comments on commit 7040fb2

Please sign in to comment.