Remove the magic knowledge about when a policy was introduced, simply
check if the policy exists.
Closes GH-196.
# Setting COMPILE_DEFINITIONS_<CONFIG> is deprecated since CMake 3.0 in favor of generator expressions.
# These have existed since CMake 2.8.10; until we depend on that, we have to explicitly enable the old policy.
# Setting COMPILE_DEFINITIONS_<CONFIG> is deprecated since CMake 3.0 in favor of generator expressions.
# These have existed since CMake 2.8.10; until we depend on that, we have to explicitly enable the old policy.
-if (CMAKE_MAJOR_VERSION GREATER 2)
cmake_policy(SET CMP0043 OLD)
endif()
# Honor visibility settings for all target types
cmake_policy(SET CMP0043 OLD)
endif()
# Honor visibility settings for all target types
-if (CMAKE_VERSION VERSION_GREATER 3.3)
cmake_policy(SET CMP0063 NEW)
endif()
cmake_policy(SET CMP0063 NEW)
endif()