If Catch 2 and Catch 1 is not found, then abort.
the build failed
Details
the build failed
Details
This commit is contained in:
parent
a72149221a
commit
3faff570a2
|
@ -3,8 +3,13 @@ if(WITH_TESTS)
|
||||||
if(Catch2_FOUND)
|
if(Catch2_FOUND)
|
||||||
set(MYCATCH, Catch2::Catch2)
|
set(MYCATCH, Catch2::Catch2)
|
||||||
else()
|
else()
|
||||||
message(WARNING "Catch2 not found. Assuming Catch 1.x is installed.")
|
if(EXISTS "/usr/include/catch.hpp")
|
||||||
|
message(STATUS "Catch 1.x found.")
|
||||||
set(MYCATCH, "")
|
set(MYCATCH, "")
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR
|
||||||
|
"Neither Catch 2.x nor Catch 1.x could be found.")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
include(CTest)
|
include(CTest)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue