CreateStyleHeader: use temp file

This commit is contained in:
Christoph Junghans 2017-07-14 18:37:06 -06:00
parent 54f2b02ac8
commit d079b2f758
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ function(CreateStyleHeader path filename)
endforeach()
endif()
message(STATUS "Generating ${filename}...")
file(WRITE "${path}/${filename}" "${temp}" )
file(WRITE "${path}/${filename}.tmp" "${temp}" )
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different "${path}/${filename}.tmp" "${path}/${filename}")
endfunction(CreateStyleHeader)
function(GenerateStyleHeader path property style)