Skip to content

Commit d28822c

Browse files
philippremyservantftransperfect
authored andcommitted
PATCH: Use NEW behavior of CMake policy CMP0135
This improves timestamp handling wih archives in ExternalProject_Add(), as it properly handles rebuilding if an URL changed. Signed-off-by: Philipp Remy <[email protected]>
1 parent f690046 commit d28822c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ option(AV_USE_OPENMP "Enable OpenMP" $<$<CXX_COMPILER_ID:"AppleClang">,OFF,ON>)
1010
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
1111
option(ALICEVISION_INSTALL_MESHROOM_PLUGIN "Install AliceVision's plugin for Meshroom" ON)
1212

13+
# Global policy section
14+
cmake_policy(SET CMP0135 NEW) # Improve timestamp handling in ExternalProject_Add()
15+
1316
if (NOT CMAKE_BUILD_TYPE)
1417
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type for AliceVision" FORCE)
1518
endif()

0 commit comments

Comments
 (0)