Fix dependencies for regression test custom target
authorTeemu Murtola <teemu.murtola@gmail.com>
Wed, 13 May 2015 11:41:04 +0000 (14:41 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 20 May 2015 10:40:54 +0000 (12:40 +0200)
The gmx binary is a prerequisite for running the regression tests
through ctest; this happens in the internal 'run-ctest' target, not in
the top-level 'check' target.  Fix the dependency.

Fixes #1736.

Change-Id: Ie18aeeb9d8b3619e1d1890848c02e6a523266653

tests/CMakeLists.txt

index 021be60c6ef400233385b8b703103fdceb4c8313..ebffac5d7b9652d09e2009ebd0e67b14fa79d4f3 100644 (file)
@@ -106,7 +106,7 @@ if(REGRESSIONTEST_PATH)
 
     # gmxtests target builds all binaries required for running gmxtest
     add_custom_target(gmxtests DEPENDS gmx)
-    add_dependencies(check gmxtests)
+    add_dependencies(run-ctest gmxtests)
 
     if(GMX_DOUBLE)
         list(APPEND ARGS -double)