Skip to content

Commit a199764

Browse files
committed
Ensure googletest library is built before other things
1 parent b3045e6 commit a199764

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@ custatevec-tests: $(CUSTATEVEC_TARGETS)
7070
hip-tests: $(HIP_TARGETS)
7171

7272
.PHONY: run-cxx-tests
73-
run-cxx-tests: cxx-tests
73+
run-cxx-tests: | $(GTEST_DIR)/build cxx-tests
7474
for exe in $(CXX_TARGETS); do if ! ./$$exe; then exit 1; fi; done
7575

7676
.PHONY: run-cuda-tests
77-
run-cuda-tests: cuda-tests
77+
run-cuda-tests: | $(GTEST_DIR)/build cuda-tests
7878
for exe in $(CUDA_TARGETS); do if ! ./$$exe; then exit 1; fi; done
7979

8080
.PHONY: run-custatevec-tests
81-
run-custatevec-tests: custatevec-tests
81+
run-custatevec-tests: | $(GTEST_DIR)/build custatevec-tests
8282
for exe in $(CUSTATEVEC_TARGETS); do if ! ./$$exe; then exit 1; fi; done
8383

8484
.PHONY: run-hip-tests
85-
run-hip-tests: hip-tests
85+
run-hip-tests: | $(GTEST_DIR)/build hip-tests
8686
for exe in $(HIP_TARGETS); do if ! ./$$exe; then exit 1; fi; done
8787

8888
$(GTEST_DIR)/build:

0 commit comments

Comments
 (0)