add_definitions(-DCVC4_ASSERTIONS)
else()
add_definitions(-DNDEBUG)
+ # Only enable unit testing if assertions are enabled. Otherwise, unit tests
+ # that expect AssertionException to be thrown will fail.
+ set(ENABLE_UNIT_TESTING OFF)
endif()
if(ENABLE_COVERAGE)
add_custom_target(check
COMMAND ctest --output-on-failure -LE "regress[2-4]" -j${NTHREADS} $(ARGS)
- DEPENDS units regress systemtests)
+ DEPENDS regress systemtests)
if(BUILD_BINDINGS_JAVA)
add_dependencies(check cvc4javatests)
endif()
+if(ENABLE_UNIT_TESTING)
+ add_dependencies(check units)
+endif()