From c34a1d6d7b1629cfc912dce38980a11bfdd7139e Mon Sep 17 00:00:00 2001 From: moto <855818+mthrok@users.noreply.github.com> Date: Wed, 5 Jul 2023 15:29:29 -0700 Subject: [PATCH] Untangle third party inclusion in CMake (#3457) Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/3457 Differential Revision: D47241343 Pulled By: mthrok fbshipit-source-id: fd1bfd1531397cb59e9cf11de9dede6949f8517e --- CMakeLists.txt | 2 +- third_party/CMakeLists.txt | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 third_party/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e45a134ed..7649c92050 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -165,9 +165,9 @@ else() message(STATUS "Could not find ccache. Consider installing ccache to speed up compilation.") endif() -add_subdirectory(third_party) add_subdirectory(torchaudio/csrc) if (BUILD_SOX) + add_subdirectory(third_party/sox) add_subdirectory(torchaudio/csrc/sox) endif() if (USE_FFMPEG) diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt deleted file mode 100644 index 07cd3c9d4b..0000000000 --- a/third_party/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ -set(CMAKE_CXX_VISIBILITY_PRESET hidden) - -file(MAKE_DIRECTORY install/include) -file(MAKE_DIRECTORY install/lib) - -################################################################################ -# sox -################################################################################ -if (BUILD_SOX) - add_subdirectory(sox) -endif()