Use Catch2_FOUND in CMakeLists.txt

This commit is contained in:
Paul Romano 2023-04-11 13:32:42 -05:00
parent 3125a28bad
commit f23620896d

View file

@ -292,7 +292,7 @@ endif()
if(OPENMC_BUILD_TESTS)
find_package_write_status(Catch2)
if (NOT Catch2)
if (NOT Catch2_FOUND)
add_subdirectory(vendor/Catch2)
endif()
endif()