noloader / cryptopp-cmake

CMake files for Crypto++ project
BSD 3-Clause "New" or "Revised" License
92 stars 68 forks source link

Remove cmake warning caused by CMP0048 (Issue #10) #17

Closed abdes closed 6 years ago

abdes commented 6 years ago

Added a test for CMAKE version 3.0.0 or below to trigger the proper use of the VERSION variables.

Before 3.0.0, we define individually the cryptopp_VERSION_MAJOR, cryptopp_VERSION_MINOR and cryptopp_VERSION_PATCH.

From 3.0.0 onward we use the VERSION in the project() line and activate the new behavior of CMP0048 to avoid the warning and the future deprecation.