Update the mode to FATAL_ERROR when CURL not found

This commit is contained in:
Yaser Afshar
2020-12-16 07:53:37 -06:00
parent 9f8b42acca
commit 0e6e1b6de1

View File

@ -12,7 +12,7 @@ if(KIM_EXTRA_UNITTESTS)
if(CURL_FOUND)
target_compile_definitions(test_kim_commands PRIVATE -DKIM_EXTRA_UNITTESTS)
else()
message(STATUS "CURL not found. Enabling KIM extra unit tests requires to have libcurl installed.")
message(FATAL_ERROR "CURL not found. Enabling KIM extra unit tests requires to have libcurl installed.")
endif()
endif()
target_link_libraries(test_kim_commands PRIVATE lammps GTest::GMock GTest::GTest)