Move the condition for running the visibility check up.

The RunCMakeTest.cmake is executed in script mode, so
the COMPILER_VERSION is not defined.
Merge topic 'VISIBILITY_PRESET-property' into next

b1be061 Move the condition for running the visibility check up.
Add a COMPILE_OPTION for a VISIBILITY_INLINES_HIDDEN target property.

This corresponds to the g++ and clang++
option -fvisibility-inlines-hidden on linux. On Windows with MinGW,
this corresponds to -fno-keep-inline-dllexport. That option is
not supported by clang currently.
Merge topic 'VISIBILITY_PRESET-property' into next

82a30a7 Add a COMPILE_OPTION for a VISIBILITY_INLINES_HIDDEN target property.