Skip to content

Commit 9ef3708

Browse files
Sebastien PonceSebastien Ponce
Sebastien Ponce
authored and
Sebastien Ponce
committed
Update cmake snipset for c++ standard
1 parent cde47b7 commit 9ef3708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: talk/tools/compiling.tex

+1-1
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)