Explorar o código

The makefile for the test was kindof wrong

Alex
Alex Neundorf %!s(int64=14) %!d(string=hai) anos
pai
achega
6bb4ca3802
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Tests/FindPackageModeMakefileTest/Makefile.in

+ 3 - 1
Tests/FindPackageModeMakefileTest/Makefile.in

@@ -1,7 +1,9 @@
 all: clean pngtest
 
-pngtest: main.o
+main.o: main.cpp
 	"@CMAKE_CXX_COMPILER@" -c `"@cmakeExecutable@" --find-package -DNAME=PNG -DLANGUAGE=CXX -DCOMPILER_ID=@CMAKE_CXX_COMPILER_ID@ -DMODE=COMPILE` main.cpp
+
+pngtest: main.o
 	"@CMAKE_CXX_COMPILER@" -o pngtest main.o `"@cmakeExecutable@" --find-package -DNAME=PNG -DLANGUAGE=CXX -DCOMPILER_ID=@CMAKE_CXX_COMPILER_ID@ -DMODE=LINK`
 
 clean: