From 04fe0044238b2690edcf5a69de3df0a858a565e5 Mon Sep 17 00:00:00 2001
From: Teon Banek <teon.banek@memgraph.io>
Date: Fri, 6 Oct 2017 15:51:15 +0200
Subject: [PATCH] Force external project recheck earlier

Summary:
This fixes an issue when the configuration changed (e.g. gflags CMake
options).

Reviewers: mferencevic

Reviewed By: mferencevic

Differential Revision: https://phabricator.memgraph.io/D874
---
 libs/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt
index e75b877b9..892903d6b 100644
--- a/libs/CMakeLists.txt
+++ b/libs/CMakeLists.txt
@@ -61,7 +61,7 @@ function(add_external_project name)
   ExternalProject_Add_Step(
     ${name}-proj force-build
     COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_CURRENT_BINARY_DIR}/src/${name}-proj-stamp/${name}-proj-build
-    DEPENDERS build ALWAYS 1)
+    DEPENDERS configure ALWAYS 1)
 endfunction(add_external_project)
 
 # Calls `add_external_project`, sets NAME_LIBRARY, NAME_INCLUDE_DIR variables