fix logic bug

This commit is contained in:
Axel Kohlmeyer
2022-12-20 07:10:28 -05:00
parent 8e36fcfa6a
commit b79f08b8d5

View File

@ -87,7 +87,7 @@ if(CMAKE_Fortran_COMPILER)
add_test(NAME FortranNeighlist COMMAND test_fortran_neighlist) add_test(NAME FortranNeighlist COMMAND test_fortran_neighlist)
# gfortran from GCC 9 on ubuntu has an ICE compiling this test. # gfortran from GCC 9 on ubuntu has an ICE compiling this test.
if ((CMAKE_Fortran_COMPILER_ID STREQUAL "GNU") AND (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER 9.0)) if ((CMAKE_Fortran_COMPILER_ID STREQUAL "GNU") AND (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER 9.9))
add_executable(test_fortran_fixexternal wrap_fixexternal.cpp test_fortran_fixexternal.f90) add_executable(test_fortran_fixexternal wrap_fixexternal.cpp test_fortran_fixexternal.f90)
target_link_libraries(test_fortran_fixexternal PRIVATE flammps lammps GTest::GMockMain) target_link_libraries(test_fortran_fixexternal PRIVATE flammps lammps GTest::GMockMain)
add_test(NAME FortranFixExternal COMMAND test_fortran_fixexternal) add_test(NAME FortranFixExternal COMMAND test_fortran_fixexternal)