Рабочая сборка C++: 17 Conan: 1.66.0

(cherry picked from commit 6d7afb3e72d348f66655da82241ac4a3e965fff5)
This commit is contained in:
Антон
2025-04-09 07:55:44 +03:00
parent b3f48b6618
commit 66bf85b310
3 changed files with 6 additions and 7 deletions
+4 -3
View File
@@ -1,13 +1,14 @@
cmake_minimum_required(VERSION 3.30.5)
project(conan2_template)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 17)
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake-build-debug/conan_toolchain.cmake)
endif ()
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake-build-release/conan_toolchain.cmake)
elseif ()
message(ERROR!!!)
endif ()
find_package(Boost REQUIRED)
+1 -4
View File
@@ -1,9 +1,6 @@
[requires]
boost/1.87.0
boost/1.78.0
[generators]
CMakeDeps
CMakeToolchain
[tool_requires]
b2/5.2.0
+1
View File
@@ -4,6 +4,7 @@
#include <boost/version.hpp>
int main() {
int x = 10;
std::cout << "Boost version: " << BOOST_LIB_VERSION << "\n";
return EXIT_SUCCESS;