6 ms·
CMake Error at CMakeLists.txt:6 (add_link_options): Unknown CMake command "add_link_options".
by 0xdeadbeefbabe 7y ago
CMake Error at CMakeLists.txt:6 (add_link_options):
Unknown CMake command "add_link_options".
- codr7 7y agoAight, seems like I need to adjust the required CMake version. It would help if I had any idea which version introduced add_link_options. Anyways, the easiest way forward for you is most probably to upgrade your CMake.
- slavik81 7y agoIt was added in v3.13. It would be nice the minimum version required to use a function was directly stated in the CMake documentation. I just keep picking older versions from the dropdown until the page disappears. https://cmake.org/cmake/help/v3.13/command/add_link_options.html https://cmake.org/cmake/help/v3.13/command/add_link_options....
- codr7 7y agoThank you, I'll update the file accordingly. And I agree: once you have a directive for checking versions, knowing which goes where is pretty critical information. Maybe someone should remind them?