This reduces warnings in CMake by selecting the newest policies up to the current version (3.11). No if statement is needed on the if statement because 3.12 will recognize the 3.1...3.11 syntax. For maintenance, when VexCL is tested on new CMake versions and is verified to work, only the upper bound will need to be changed.
This also removes "old visibility policy" setting warnings for users trying to use visibility.
This reduces warnings in CMake by selecting the newest policies up to the current version (3.11). No if statement is needed on the if statement because 3.12 will recognize the
3.1...3.11
syntax. For maintenance, when VexCL is tested on new CMake versions and is verified to work, only the upper bound will need to be changed.This also removes "old visibility policy" setting warnings for users trying to use visibility.