Skip to content

Commit 0656546

Browse files
MBA-145: Update examples/pocs/common/tools CMakeLists.txt to C++23
- Updated target_compile_features from cxx_std_17 to cxx_std_23 - Updated 22 examples, 1 pocs, 1 common, and 15 tools CMakeLists.txt files - Excluded src/CMakeLists.txt and ggml/src/CMakeLists.txt due to 'don't bump' comments - Excluded ggml backend files to maintain core library compatibility Co-Authored-By: Jaime Mizrachi <[email protected]>
1 parent 661ae31 commit 0656546

File tree

39 files changed

+44
-44
lines changed

39 files changed

+44
-44
lines changed

common/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ if (LLAMA_LLGUIDANCE)
134134
endif ()
135135

136136
target_include_directories(${TARGET} PUBLIC . ../vendor)
137-
target_compile_features (${TARGET} PUBLIC cxx_std_17)
137+
target_compile_features (${TARGET} PUBLIC cxx_std_23)
138138
target_link_libraries (${TARGET} PRIVATE ${LLAMA_COMMON_EXTRA_LIBS} PUBLIC llama Threads::Threads)
139139

140140

examples/batched/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ set(TARGET llama-batched)
22
add_executable(${TARGET} batched.cpp)
33
install(TARGETS ${TARGET} RUNTIME)
44
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
5-
target_compile_features(${TARGET} PRIVATE cxx_std_17)
5+
target_compile_features(${TARGET} PRIVATE cxx_std_23)

examples/convert-llama2c-to-ggml/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ set(TARGET llama-convert-llama2c-to-ggml)
22
add_executable(${TARGET} convert-llama2c-to-ggml.cpp)
33
install(TARGETS ${TARGET} RUNTIME)
44
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
5-
target_compile_features(${TARGET} PRIVATE cxx_std_17)
5+
target_compile_features(${TARGET} PRIVATE cxx_std_23)

examples/diffusion/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ set(TARGET llama-diffusion-cli)
22
add_executable(${TARGET} diffusion-cli.cpp)
33
install(TARGETS ${TARGET} RUNTIME)
44
target_link_libraries(${TARGET} PRIVATE llama common ${CMAKE_THREAD_LIBS_INIT})
5-
target_compile_features(${TARGET} PRIVATE cxx_std_17)
5+
target_compile_features(${TARGET} PRIVATE cxx_std_23)

examples/embedding/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ set(TARGET llama-embedding)
22
add_executable(${TARGET} embedding.cpp)
33
install(TARGETS ${TARGET} RUNTIME)
44
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
5-
target_compile_features(${TARGET} PRIVATE cxx_std_17)
5+
target_compile_features(${TARGET} PRIVATE cxx_std_23)

examples/eval-callback/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ set(TARGET llama-eval-callback)
22
add_executable(${TARGET} eval-callback.cpp)
33
install(TARGETS ${TARGET} RUNTIME)
44
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
5-
target_compile_features(${TARGET} PRIVATE cxx_std_17)
5+
target_compile_features(${TARGET} PRIVATE cxx_std_23)
66

77
set(TEST_TARGET test-eval-callback)
88
add_test(NAME ${TEST_TARGET}

examples/gen-docs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ set(TARGET llama-gen-docs)
22
add_executable(${TARGET} gen-docs.cpp)
33
install(TARGETS ${TARGET} RUNTIME)
44
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
5-
target_compile_features(${TARGET} PRIVATE cxx_std_17)
5+
target_compile_features(${TARGET} PRIVATE cxx_std_23)

examples/gguf-hash/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ add_library(sha256 OBJECT deps/sha256/sha256.c deps/sha256/sha256.h)
1919
target_link_libraries(${TARGET} PRIVATE sha256)
2020

2121
target_link_libraries(${TARGET} PRIVATE ggml ${CMAKE_THREAD_LIBS_INIT})
22-
target_compile_features(${TARGET} PRIVATE cxx_std_17)
22+
target_compile_features(${TARGET} PRIVATE cxx_std_23)

examples/gguf/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ set(TARGET llama-gguf)
22
add_executable(${TARGET} gguf.cpp)
33
install(TARGETS ${TARGET} RUNTIME)
44
target_link_libraries(${TARGET} PRIVATE ggml ${CMAKE_THREAD_LIBS_INIT})
5-
target_compile_features(${TARGET} PRIVATE cxx_std_17)
5+
target_compile_features(${TARGET} PRIVATE cxx_std_23)

examples/gritlm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ set(TARGET llama-gritlm)
22
add_executable(${TARGET} gritlm.cpp)
33
install(TARGETS ${TARGET} RUNTIME)
44
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
5-
target_compile_features(${TARGET} PRIVATE cxx_std_17)
5+
target_compile_features(${TARGET} PRIVATE cxx_std_23)

0 commit comments

Comments
 (0)