ddemidov / vexcl

VexCL is a C++ vector expression template library for OpenCL/CUDA/OpenMP
http://vexcl.readthedocs.org
MIT License
701 stars 81 forks source link

Fixing warnings with CMake, use latest tested features #244

Closed henryiii closed 6 years ago

henryiii commented 6 years ago

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.

ddemidov commented 6 years ago

Thanks again!