fbcode_builder: fix install_fb_python_library() to work with old CMake versions
Summary: Update install_fb_python_library() to work with CMake versions older than 3.7. Previously the code used a generator expression in the directory argument supplied to `install(DIRECTORY)`. Support for generators in this parameter was only added in CMake 3.5, but it was buggy and did not correctly handle absolute paths until 3.7. This updates the code to avoid using a generator expression. This does require that the corresponding `add_fb_python_library()` statement appear before the `install_fb_python_library()` statement, but this seems like a pretty reasonable restriction. Reviewed By: chadaustin Differential Revision: D17103597 fbshipit-source-id: 54d6af93a3f530373cfe3137db99436d8484f308
Showing
Please register or sign in to comment