Merge branch 'cmake' of github.com:junghans/lammps into cmake

This commit is contained in:
Richard Berger
2017-07-14 22:08:06 -05:00
2 changed files with 19 additions and 5 deletions

View File

@ -51,8 +51,9 @@ function(CreateStyleHeader path filename)
set(temp "${temp}#include \"${FNAME}\"\n")
endforeach()
endif()
message("Generating ${filename}...")
file(WRITE "${path}/${filename}" "${temp}" )
message(STATUS "Generating ${filename}...")
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)