mocxx icon indicating copy to clipboard operation
mocxx copied to clipboard

Fix debian buster linker problem

Open 5balls opened this issue 3 years ago • 2 comments

It seems debian busters clang requires this change to the CMakeLists.txt file to link correctly.

I have set clang via update-alternatives and changed this file, then it worked.

I also installed clang-11 backport to buster but if I interpret cmake output correctly it used the normal system version of clang 7.0.1..

All of this may be obsolete with the next debian stable version appearing in about a week I think, so it may be reasonable to ignore this pull request if the new debian release fixes this and this pull request may cause other problems down the line (though I don't see why it should).

5balls avatar Aug 07 '21 11:08 5balls

Apparently while fixing my problem this breaks other stuff - should probably not be merged.

5balls avatar Aug 10 '21 18:08 5balls

Sadly, how to link against the right library for std::filesystem support depends on the OS, which version of the OS, which compiler is used, etc.. Not sure if we can get it right for every case.

This is also just a dependency of the unit test. For using the library it shouldn't be needed.

MichielDerhaeg avatar Aug 10 '21 19:08 MichielDerhaeg