Skip to content

Commit a25647b

Browse files
committed
C++23
Signed-off-by: TymianekPL <[email protected]>
1 parent 0b02fef commit a25647b

File tree

7 files changed

+11
-36
lines changed

7 files changed

+11
-36
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
cmake_minimum_required (VERSION 3.8)
22

3-
add_subdirectory("cppjson");
4-
add_subdirectory("Test");
3+
add_subdirectory("cppjson")
4+
add_subdirectory("Test")

Test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ project ("Test")
1515
add_executable (Test "Test.cpp" "Test.h")
1616

1717
if (CMAKE_VERSION VERSION_GREATER 3.12)
18-
set_property(TARGET Test PROPERTY CXX_STANDARD 20)
18+
set_property(TARGET Test PROPERTY CXX_STANDARD 23)
1919
endif()
2020

2121
# TODO: Add tests and install targets if needed.

Test/Test.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
// Test.cpp : Defines the entry point for the application.
2-
//
3-
4-
#include "Test.h"
5-
6-
using namespace std;
1+
#include <print>
72

83
int main()
94
{
10-
cout << "Hello CMake." << endl;
11-
return 0;
12-
}
5+
std::println("Hewwo wowld");
6+
}

Test/Test.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
// Test.h : Include file for standard system include files,
2-
// or project specific include files.
3-
4-
#pragma once
5-
6-
#include <iostream>
7-
8-
// TODO: Reference additional headers your program requires here.
1+
#pragma once

cppjson/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ project ("cppjson")
1515
add_executable (cppjson "cppjson.cpp" "cppjson.h")
1616

1717
if (CMAKE_VERSION VERSION_GREATER 3.12)
18-
set_property(TARGET cppjson PROPERTY CXX_STANDARD 20)
18+
set_property(TARGET cppjson PROPERTY CXX_STANDARD 23)
1919
endif()
2020

2121
# TODO: Add tests and install targets if needed.

cppjson/cppjson.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
// cppjson.cpp : Defines the entry point for the application.
2-
//
3-
4-
#include "cppjson.h"
5-
6-
using namespace std;
1+
#include <print>
72

83
int main()
94
{
10-
cout << "Hello CMake." << endl;
5+
std::println("Hewwo");
116
return 0;
127
}

cppjson/cppjson.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
// cppjson.h : Include file for standard system include files,
2-
// or project specific include files.
3-
4-
#pragma once
5-
6-
#include <iostream>
7-
8-
// TODO: Reference additional headers your program requires here.
1+
#pragma once

0 commit comments

Comments
 (0)