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
This commit is contained in:
Teon Banek 2017-10-06 15:51:15 +02:00
parent 880a563cf3
commit 04fe004423

View File

@ -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