Browse Source

Tests: Fix find-package mode test.

The all target was depending on the clean and pngtest targets, but
when running the tests with -jN, those can be executed out of order.

Make the main.o target depend on the clean target instead to fix
this.
Stephen Kelly 12 years ago
parent
commit
dea71aae6d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Tests/FindPackageModeMakefileTest/Makefile.in

+ 2 - 2
Tests/FindPackageModeMakefileTest/Makefile.in

@@ -9,9 +9,9 @@ CMAKE_FOO = $(CMAKE) --find-package -DCMAKE_MODULE_PATH=$(CMAKE_CURRENT_BINARY_D
 
 tmp = tmp.txt
 
-all: clean pngtest
+all: pngtest
 
-main.o: main.cpp
+main.o: clean main.cpp
 	@$(CMAKE_FOO) -DMODE=COMPILE >$(tmp)
 	@foo="`cat $(tmp)`"; \
 	 printf '"%s" %s %s -c main.cpp\n' $(CMAKE_CXX_COMPILER) "$(CXXFLAGS)" "$$foo" >$(tmp)