From f4a8dcd15dcbfe60752dbd472d20dd4e55fad562 Mon Sep 17 00:00:00 2001 From: liuzongxuan Date: Tue, 10 Dec 2019 16:54:29 +0800 Subject: [PATCH] update CXX compiler from 11 to 14 --- advanced_source/cpp_export.rst | 2 +- advanced_source/cpp_frontend.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/advanced_source/cpp_export.rst b/advanced_source/cpp_export.rst index 95e37618e73..ebf27fd3a0d 100644 --- a/advanced_source/cpp_export.rst +++ b/advanced_source/cpp_export.rst @@ -205,7 +205,7 @@ minimal ``CMakeLists.txt`` to build it could look as simple as: add_executable(example-app example-app.cpp) target_link_libraries(example-app "${TORCH_LIBRARIES}") - set_property(TARGET example-app PROPERTY CXX_STANDARD 11) + set_property(TARGET example-app PROPERTY CXX_STANDARD 14) The last thing we need to build the example application is the LibTorch distribution. You can always grab the latest stable release from the `download diff --git a/advanced_source/cpp_frontend.rst b/advanced_source/cpp_frontend.rst index 8dd1a8abf4a..d8a103e3495 100644 --- a/advanced_source/cpp_frontend.rst +++ b/advanced_source/cpp_frontend.rst @@ -144,7 +144,7 @@ on we'll use this ``CMakeLists.txt`` file: add_executable(dcgan dcgan.cpp) target_link_libraries(dcgan "${TORCH_LIBRARIES}") - set_property(TARGET dcgan PROPERTY CXX_STANDARD 11) + set_property(TARGET dcgan PROPERTY CXX_STANDARD 14) .. note::