correct CMake syntax

This commit is contained in:
Axel Kohlmeyer
2023-06-17 18:04:38 -04:00
parent 058d817335
commit f193a87426

View File

@ -88,7 +88,7 @@ if(BUILD_MPI)
add_test(NAME RunCoupleSimpleCC
COMMAND $<TARGET_FILE:simpleCC> 1 ${LAMMPS_DIR}/examples/COUPLE/simple/in.lj)
if($<TARGET_EXISTS:simpleF90>)
if(TARGET simpleF90)
add_test(NAME RunCoupleSimpleF90
COMMAND $<TARGET_FILE:simpleF90> 1 ${LAMMPS_DIR}/examples/COUPLE/simple/in.lj)
set_tests_properties(RunCoupleSimpleF90 PROPERTIES