mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-05 20:51:25 -07:00
CMake: Enforce minimum C++ mode support
This commit is contained in:
parent
f63e70b449
commit
d593d6baa1
4 changed files with 30 additions and 16 deletions
|
@ -14,6 +14,12 @@ read_version("${CMAKE_CURRENT_SOURCE_DIR}/version.pri" VER_MAJOR VER_MINOR VER_B
|
|||
|
||||
project(qBittorrent VERSION ${VER_MAJOR}.${VER_MINOR}.${VER_BUGFIX}.${VER_BUILD})
|
||||
|
||||
# check for invalid compiler version/CXX standard as early as possible
|
||||
include(FunctionQbtCXXCompilerAndModeCheck)
|
||||
qbt_minimum_cxx_mode_check(14)
|
||||
message(STATUS "Building in C++${CMAKE_CXX_STANDARD} mode.\n"
|
||||
"Make sure libtorrent was built with the same C++ mode for ABI compatibility.")
|
||||
|
||||
set(PROJECT_VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_BUGFIX}")
|
||||
|
||||
if (NOT VER_BUILD EQUAL 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue