Skip to content

Commit bc0e315

Browse files
committed
Update sample makefiles to C++14, as that's what PyTorch requires now
Signed-off-by: Edward Z. Yang <[email protected]>
1 parent c87836d commit bc0e315

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

advanced_source/cpp_export.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ minimal ``CMakeLists.txt`` to build it could look as simple as:
205205
206206
add_executable(example-app example-app.cpp)
207207
target_link_libraries(example-app "${TORCH_LIBRARIES}")
208-
set_property(TARGET example-app PROPERTY CXX_STANDARD 11)
208+
set_property(TARGET example-app PROPERTY CXX_STANDARD 14)
209209
210210
The last thing we need to build the example application is the LibTorch
211211
distribution. You can always grab the latest stable release from the `download

advanced_source/cpp_frontend.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ on we'll use this ``CMakeLists.txt`` file:
144144
145145
add_executable(dcgan dcgan.cpp)
146146
target_link_libraries(dcgan "${TORCH_LIBRARIES}")
147-
set_property(TARGET dcgan PROPERTY CXX_STANDARD 11)
147+
set_property(TARGET dcgan PROPERTY CXX_STANDARD 14)
148148
149149
.. note::
150150

0 commit comments

Comments
 (0)