Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Ah, it seems the issue isn't with the compiler itself, but rather with the default C++ standard, which is set to 17 on my system running Ubuntu 22

here is the edited CMakeList.txt which work fine

cmake_minimum_required(VERSION 3.22)
project(HelloWorld)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

add_executable(hello hello.cpp)
add_subdirectory(deps/jsontoolkit)


target_link_libraries(hello PUBLIC sourcemeta::jsontoolkit::json)
target_link_libraries(hello PUBLIC sourcemeta::jsontoolkit::jsonschema)
target_link_libraries(hello PUBLIC sourcemeta::jsontoolkit::jsonpointer)
target_link_libraries(hello PUBLIC sourcemeta::jsontoolkit::jsonl)

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jviotti
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #568 on May 07, 2024 16:22.