Skip to content

Commit b322221

Browse files
Stop passing multiple targets to cmake build
Old versions of cmake do not support this, causing the tests to fail.
1 parent 4fc697c commit b322221

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,9 @@ if (BUILD_TESTS)
300300
add_test(benchmark_branchfree benchmark_branchfree)
301301

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

307308
# Build the fuzzers (requires clang) ###########################

0 commit comments

Comments
 (0)