compatibility with older CMake versions

This commit is contained in:
Axel Kohlmeyer
2021-03-25 17:14:57 -04:00
parent 28ac1fddc7
commit 4efe60ec43

View File

@ -2,7 +2,7 @@ include(GTest)
# check if we can run the compiled executable and whether it prints
# the LAMMPS version header in the output for an empty input
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/in.empty)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/in.empty "")
add_test(NAME RunLammps
COMMAND $<TARGET_FILE:lmp> -log none -echo none -in in.empty
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})