Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
77de2b96
Unverified
Commit
77de2b96
authored
Feb 08, 2021
by
moto
Committed by
GitHub
Feb 08, 2021
Browse files
Fix options for CMakeLists (#1249)
parent
0f23e6d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
CMakeLists.txt
CMakeLists.txt
+1
-1
torchaudio/csrc/CMakeLists.txt
torchaudio/csrc/CMakeLists.txt
+3
-3
No files found.
CMakeLists.txt
View file @
77de2b96
...
@@ -49,7 +49,7 @@ endif()
...
@@ -49,7 +49,7 @@ endif()
option
(
BUILD_SOX
"Build libsox statically"
OFF
)
option
(
BUILD_SOX
"Build libsox statically"
OFF
)
option
(
BUILD_TRANSDUCER
"Enable transducer"
OFF
)
option
(
BUILD_TRANSDUCER
"Enable transducer"
OFF
)
option
(
BUILD_LIBTORCHAUDIO
"Build C++ Library"
ON
)
option
(
BUILD_LIBTORCHAUDIO
"Build C++ Library"
ON
)
option
(
BUILD_PYTHON_EXTENSION
"Build Python extension"
OFF
)
option
(
BUILD_
TORCHAUDIO_
PYTHON_EXTENSION
"Build Python extension"
OFF
)
find_package
(
Torch REQUIRED
)
find_package
(
Torch REQUIRED
)
...
...
torchaudio/csrc/CMakeLists.txt
View file @
77de2b96
...
@@ -28,19 +28,19 @@ if(BUILD_LIBTORCHAUDIO)
...
@@ -28,19 +28,19 @@ if(BUILD_LIBTORCHAUDIO)
target_include_directories
(
target_include_directories
(
libtorchaudio
libtorchaudio
P
RIVATE
P
UBLIC
${
CMAKE_CURRENT_
PROJECT_DIR
}
${
PROJECT
_SOURCE
_DIR
}
)
)
target_link_libraries
(
target_link_libraries
(
libtorchaudio
libtorchaudio
${
TORCHAUDIO_THIRD_PARTIES
}
${
TORCHAUDIO_THIRD_PARTIES
}
${
PROJECT_SOURCE_DIR
}
)
)
install
(
install
(
TARGETS
TARGETS
libtorchaudio
libtorchaudio
LIBRARY DESTINATION lib
)
)
set
(
TORCHAUDIO_LIBRARY -Wl,--no-as-needed libtorchaudio -Wl,--as-needed CACHE INTERNAL
""
)
set
(
TORCHAUDIO_LIBRARY -Wl,--no-as-needed libtorchaudio -Wl,--as-needed CACHE INTERNAL
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment