pytorch
7cb83bea - Fix static cuda builds on older cmake versions (#30935)

Commit
5 years ago
Fix static cuda builds on older cmake versions (#30935) Summary: Fixes https://github.com/pytorch/pytorch/pull/28378#issuecomment-562597033 To reproduce the failure I had to downgrade to `cmake 3.9` (Ubuntu 18 uses 3.10 apparently). These older `cmake` versions unfortunately don't seem to allow `target_link_libraries(INTERFACE)` to be used with imported libraries. Switching back to `set_property(TARGET)` fixes the issue. Pull Request resolved: https://github.com/pytorch/pytorch/pull/30935 Differential Revision: D18956912 Pulled By: albanD fbshipit-source-id: a2b728ee3268599a428b7878c988e1edef5d9dda
Author
Parents
Loading