getifaddrs missing more user friendly in CMake. 37/3137/1
authorJoakim Soderberg <joakim.soderberg@gmail.com>
Fri, 22 Feb 2013 01:28:02 +0000 (09:28 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:38 +0000 (13:01 -0800)
commit9ce084a7e4e8a75f759e9205878e66fe042dcd6b
tree09672ecba4b8799feb59a2ff207e35ea3f0c911a
parent2b3fe4ffcc14f41e4be6fd6d4abf9b6e72d54478
getifaddrs missing more user friendly in CMake.

Don't require the user to enable using the built-in BSD getifaddrs implementation on systems such as uclibc that lacks it manually.

Instead if getifaddrs doesn't exist, use the BSD one automatically, except if the user explicitly tells the user not to do this using WITHOUT_BUILTIN_GETIFADDRS (which will result in a compilation error, but at least with a nice error message explaining why).
CMakeLists.txt