23 Dec
2023
23 Dec
'23
8:22 a.m.
CMake doesn't support cobalt (even the latest cmake 3.28.1 doesn't support it). On 12/21/23 22:29, Josué Andrade Gomes via Boost-users wrote:
cmake_minimum_required(VERSION 3.20) project(coro_study)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_CXX_STANDARD 20) set(CMAKE_VERBOSE_MAKEFILE ON)
set(Boost_VERBOSE 1) set(Boost_DEBUG 1)
find_package(Boost REQUIRED COMPONENTS system)
add_executable(sample sample.cpp)
target_include_directories(sample4 PRIVATE ${Boost_INCLUDE_DIRS}) target_link_libraries(sample4 PRIVATE ${Boost_LIBRARIES})