Skip to content

Commit

Permalink
Stop passing multiple targets to cmake build
Browse files Browse the repository at this point in the history
Old versions of cmake do not support this, causing the tests to fail.
  • Loading branch information
ridiculousfish committed Jul 17, 2021
1 parent 4fc697c commit b322221
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,9 @@ if (BUILD_TESTS)
add_test(benchmark_branchfree benchmark_branchfree)

# cmake won't actually build the tests before it tries to run them
add_test(build_tests "${CMAKE_COMMAND}" --build ${CMAKE_BINARY_DIR} --target tester benchmark_branchfree)
set_tests_properties(tester benchmark_branchfree PROPERTIES DEPENDS build_tests)
add_test(build_tester "${CMAKE_COMMAND}" --build ${CMAKE_BINARY_DIR} --target tester)
add_test(build_benchmark_branchfree "${CMAKE_COMMAND}" --build ${CMAKE_BINARY_DIR} --target benchmark_branchfree)
set_tests_properties(tester benchmark_branchfree PROPERTIES DEPENDS "build_tester;build_benchmark_branchfree")
endif()

# Build the fuzzers (requires clang) ###########################
Expand Down

0 comments on commit b322221

Please sign in to comment.