@@ -3,6 +3,10 @@ cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
3
3
set (CMAKE_BUILD_TYPE debug)
4
4
option (USE_CLANG "build application with clang" OFF )# OFF is the default
5
5
6
+
7
+
8
+
9
+
6
10
if (USE_CLANG)
7
11
set (CMAKE_C_COMPILER "/usr/bin/clang" )
8
12
#set (CMAKE_C_FLAGS "-Wall -std=c99")
@@ -26,13 +30,11 @@ if(USE_CLANG)
26
30
endif ()
27
31
28
32
project (cpp_tutorials)
29
- set (CMAKE_VERBOSE_MAKEFILE "erbose output from Makefile " OFF )
33
+ set (CMAKE_VERBOSE_MAKEFILE "verbose output from Makefile " OFF )
30
34
31
35
set (CMAKE_CXX_STANDARD 20)
32
36
set (CMAKE_CXX_STANDARD_REQUIRED ON )
33
37
set (CMAKE_BUILD_TYPE debug)
34
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++2a" )
35
-
36
38
37
39
38
40
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
@@ -59,14 +61,14 @@ message("CMAKE_CXX_COMPILER_VERSION: " ${CMAKE_CXX_COMPILER_VERSION} )
59
61
add_executable (pointers src/pointers/pointers.cpp )
60
62
target_link_libraries ( pointers)
61
63
62
- add_executable (string src/string .cpp )
63
- target_link_libraries ( string )
64
+ # add_executable(string src/string.cpp )
65
+ # target_link_libraries( string)
64
66
65
67
add_executable (exception_handling src/exception_handling.cpp)
66
68
target_link_libraries ( exception_handling)
67
69
68
- add_executable (heap_vs_stack src/heap_vs_stack.cpp)
69
- target_link_libraries (heap_vs_stack)
70
+ # add_executable(heap_vs_stack src/heap_vs_stack.cpp)
71
+ # target_link_libraries(heap_vs_stack)
70
72
71
73
add_executable (assert src/assert.cpp)
72
74
target_link_libraries (assert)
@@ -259,8 +261,8 @@ add_executable(mutex src/multithreading/mutex.cpp)
259
261
target_link_libraries (mutex -pthread)
260
262
261
263
262
- add_executable (condition_variable src/multithreading/condition_variable.cpp)
263
- target_link_libraries (condition_variable -pthread)
264
+ # add_executable(condition_variable src/multithreading/condition_variable.cpp)
265
+ # target_link_libraries(condition_variable -pthread)
264
266
265
267
266
268
add_executable (async_future_promise src/multithreading/async_future_promise.cpp)
@@ -346,8 +348,8 @@ target_link_libraries(most_vexing_parse)
346
348
add_executable (VTABLE_and_VPTR src/VTABLE_and_VPTR.cpp)
347
349
target_link_libraries (VTABLE_and_VPTR)
348
350
349
- add_executable (allocator src/allocator.cpp)
350
- target_link_libraries (allocator)
351
+ # add_executable(allocator src/allocator.cpp)
352
+ # target_link_libraries(allocator)
351
353
352
354
add_executable (noexcept_operator_specifier src/noexcept_operator_specifier.cpp)
353
355
target_link_libraries (noexcept_operator_specifier)
0 commit comments