Commit 70acff7a authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Follow-up fix policy set (#3046)

Summary:
Commit b4c66d1f broke all the CIs.
The new policy changes the timestamp of configuration files of third party libraries,
which triggers re-configuration which requires extra tools.

This commit fixes it by reverting the old behavior.
Also this adds guard for older cmake versions.

Pull Request resolved: https://github.com/pytorch/audio/pull/3046

Reviewed By: atalman

Differential Revision: D43133536

Pulled By: mthrok

fbshipit-source-id: 357055c8c1b53e593b8b7880f2045e13512c7a8f
parent 05d597fa
...@@ -17,7 +17,9 @@ if(NOT CMAKE_VERSION VERSION_LESS 3.15.0) ...@@ -17,7 +17,9 @@ if(NOT CMAKE_VERSION VERSION_LESS 3.15.0)
endif() endif()
# Suppress warning about ExternalProject_Add timestamp # Suppress warning about ExternalProject_Add timestamp
cmake_policy(SET CMP0135 NEW) if(NOT CMAKE_VERSION VERSION_LESS 3.24.0)
cmake_policy(SET CMP0135 OLD)
endif()
project(torchaudio) project(torchaudio)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment