forked from lijiext/lammps
CreateStyleHeader: use temp file
This commit is contained in:
parent
54f2b02ac8
commit
d079b2f758
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue