cmake: Raise the minimum required version to 3.6 and use its features

Use the `CMAKE_HOST_SOLARIS` variable, introduced in CMake 3.6, and
raise `cmake_minimum_required` accordingly.
1 file changed