reo7sp / tgbot-cpp

C++ library for Telegram bot API
http://reo7sp.github.io/tgbot-cpp
MIT License
995 stars 238 forks source link

Improvements for CMake rules #270

Closed r4d1sh closed 1 year ago

r4d1sh commented 1 year ago
  1. The policy CMP0074 has been switched to a new behavior, which removes the CMake warning about the use of _ROOT variables.
  2. Some useful definitions have been added for building on Windows, in particular, this removes the warning about _WIN32_WINNT during compilation. 3. Using build targets instead of library paths eliminates the error if CURL was not found.
  3. Do not link CURL if it is not found. This eliminates a CMake error if someone is not using the optional CURL.
reo7sp commented 1 year ago

Thanks