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
f5ac116f
Unverified
Commit
f5ac116f
authored
Mar 08, 2021
by
moto
Committed by
GitHub
Mar 08, 2021
Browse files
Fix C++ extension for Windows (#1371)
* Fix install location and suffix for Windows
parent
7b85f1c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
torchaudio/csrc/CMakeLists.txt
torchaudio/csrc/CMakeLists.txt
+8
-1
No files found.
torchaudio/csrc/CMakeLists.txt
View file @
f5ac116f
...
...
@@ -74,6 +74,9 @@ if (BUILD_TORCHAUDIO_PYTHON_EXTENSION)
)
set_target_properties
(
_torchaudio PROPERTIES PREFIX
""
)
if
(
MSVC
)
set_target_properties
(
_torchaudio PROPERTIES SUFFIX
".pyd"
)
endif
(
MSVC
)
if
(
APPLE
)
# https://github.com/facebookarchive/caffe2/issues/854#issuecomment-364538485
...
...
@@ -116,5 +119,9 @@ if (BUILD_TORCHAUDIO_PYTHON_EXTENSION)
${
ADDITIONAL_ITEMS
}
)
install
(
TARGETS _torchaudio LIBRARY DESTINATION
${
CMAKE_INSTALL_PREFIX
}
)
install
(
TARGETS _torchaudio
LIBRARY DESTINATION .
RUNTIME DESTINATION .
# For Windows
)
endif
()
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