-
I added cmake_minimum_required(VERSION 3.21)
project(your_awesome_app LANGUAGES CXX VERSION 1.0)
# --------------------------------------------------------------------------------------------------------
# Create executable
# --------------------------------------------------------------------------------------------------------
add_executable(${PROJECT_NAME} "main.cpp")
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 20 CXX_EXTENSIONS OFF CXX_STANDARD_REQUIRED ON)
# --------------------------------------------------------------------------------------------------------
# Link libraries
# --------------------------------------------------------------------------------------------------------
include(FetchContent)
FetchContent_Declare(
saucer
GIT_REPOSITORY "https://github.com/saucer/saucer"
GIT_TAG v2.1.1
)
FetchContent_MakeAvailable(saucer)
target_link_libraries(${PROJECT_NAME} PRIVATE saucer::saucer) in my cmakelist.txt and ran cmake after that when I try to build , I am getting these errors
why? can you please help? @Curve |
Beta Was this translation helpful? Give feedback.
Answered by
Curve
Nov 21, 2023
Replies: 1 comment 2 replies
-
You need a newer compiler, as stated in the documentation, saucer needs a recent compiler (/ toolchain) especially for MSVC because it had several defects that impacted saucer. You're still using MSVC 2019, please upgrade to MSVC 2022 with Toolset Version at least >= 14.3 Edit: Also please use GitHub issues for this, it doesn't quite fit Discussions |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Curve
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need a newer compiler, as stated in the documentation, saucer needs a recent compiler (/ toolchain) especially for MSVC because it had several defects that impacted saucer.
You're still using MSVC 2019, please upgrade to MSVC 2022 with Toolset Version at least >= 14.3
Edit: Also please use GitHub issues for this, it doesn't quite fit Discussions