Skip to content

Commit a8707b0

Browse files
committed
docs: website build scripts set cxx_std_23
1 parent f600633 commit a8707b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/website/render.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ for (let panel of data.panels) {
5757

5858
// Create a CMakeLists.txt file for the snippet
5959
const cmakeListsPath = path.join(absSnippetsDir, 'CMakeLists.txt')
60-
const cmakeListsContent = `cmake_minimum_required(VERSION 3.13)\nproject(${sourceBasename})\nadd_executable(${sourceBasename} ${panel.source})\n`
60+
const cmakeListsContent = `cmake_minimum_required(VERSION 3.13)\nproject(${sourceBasename})\nadd_executable(${sourceBasename} ${panel.source})\ntarget_compile_features(${sourceBasename} PRIVATE cxx_std_23)\n`
6161
fs.writeFileSync(cmakeListsPath, cmakeListsContent)
6262

6363
// Run mrdocs to generate documentation

0 commit comments

Comments
 (0)