Open pemmanuelviel opened 4 years ago
CMake doesn't support anymore add_library with a "" sources field, that was previously allowing further to link exclusively with a static lib. This solution creates a dummy empty source file passed to add_library.
Similar fix being used with the Debian packaging of flann:
https://salsa.debian.org/science-team/flann/-/blob/debian/1.9.1+dfsg-9/debian/patches/0001-src-cpp-fix-cmake-3.11-build.patch
CMake doesn't support anymore add_library with a "" sources field, that was previously allowing further to link exclusively with a static lib. This solution creates a dummy empty source file passed to add_library.