Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b95492b

Browse files
Sebastien Poncehageboeck
Sebastien Ponce
authored andcommitted
Update cmake snipset for c++ standard
1 parent cde47b7 commit b95492b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎talk/tools/compiling.tex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
find_package(ZLIB REQUIRED) # for external libs
182182

183183
add_executable(hello main.cpp util.h util.cpp)
184-
target_compile_features(hello PUBLIC cxx_std_17)
184+
set(CMAKE_CXX_STANDARD 20)
185185
target_link_libraries(hello PUBLIC ZLIB::ZLIB)
186186
\end{minted}
187187
\end{block}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /