How to disallow compilation against older shared libraries in cmake

48 Views Asked by At

I have a cmake C project that needs to be compiled against libc.

I want to use a function (getgrouplist) that contains a bug in glibc versions prior to 2.3.3.

I want to disallow compilation on machines that have glibc 2.3.3 or older, but I don't want to link to a specific version.

Is there a way to do this?

0

There are 0 best solutions below