Skip to content

Commit d65f528

Browse files
committed
Change CXX version in CMAKE.
1 parent 0f7a6a6 commit d65f528

1 file changed

Lines changed: 29 additions & 20 deletions

File tree

bridge/CMakeLists.txt

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ endif()
1111

1212
set(CMAKE_C_COMPILER "clang")
1313
set(CMAKE_CXX_COMPILER "clang++")
14-
set(CMAKE_CXX_STANDARD 11)
14+
set(CMAKE_CXX_STANDARD 17)
1515

1616

1717
set(PROJECT_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
@@ -55,25 +55,34 @@ ExternalProject_Add(
5555
# We can use a little trick with COMMAND.
5656
# PATCH_COMMAND "git submodule update --init --recursive"
5757

58-
CMAKE_ARGS
59-
-DBUILD_SHARED_LIBS=OFF # Build static libraries
60-
-DBUILD_PYTHON=OFF # Don’t build Python bindings
61-
-DBUILD_TEST=OFF # Don’t build tests
62-
-DUSE_CUDA=OFF # Disable CUDA
63-
-DUSE_CUDNN=OFF # Disable cuDNN
64-
-DUSE_MKLDNN=OFF # Disable MKLDNN for simplicity
65-
# -DBUILD_BINARY=ON
66-
# -DUSE_DISTRIBUTED=ON
67-
# -DBUILD_STATIC_RUNTIME_BENCHMARK=ON
68-
# -DBUILD_LITE_INTERPRETER=ON
69-
# -DUSE_STATIC_MKL=ON
70-
# -DSTATIC_DISPATCH_BACKEND=ON
71-
# -DCAFFE2_USE_MSVC_STATIC_RUNTIME=ON
72-
# -DUSE_DISTRIBUTED=ON
73-
-DCMAKE_BUILD_TYPE=Release
74-
-DCMAKE_INSTALL_PREFIX=${PYTORCH_INSTALL_DIR}
75-
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
76-
58+
# CMAKE_ARGS
59+
# -DBUILD_SHARED_LIBS=OFF # Build static libraries
60+
# -DBUILD_PYTHON=OFF # Don’t build Python bindings
61+
# -DBUILD_TEST=OFF # Don’t build tests
62+
# -DUSE_CUDA=OFF # Disable CUDA
63+
# -DUSE_CUDNN=OFF # Disable cuDNN
64+
# -DUSE_MKLDNN=OFF # Disable MKLDNN for simplicity
65+
# # -DBUILD_BINARY=ON
66+
# # -DUSE_DISTRIBUTED=ON
67+
# # -DBUILD_STATIC_RUNTIME_BENCHMARK=ON
68+
# # -DBUILD_LITE_INTERPRETER=ON
69+
# # -DUSE_STATIC_MKL=ON
70+
# # -DSTATIC_DISPATCH_BACKEND=ON
71+
# # -DCAFFE2_USE_MSVC_STATIC_RUNTIME=ON
72+
# # -DUSE_DISTRIBUTED=ON
73+
# # -DCMAKE_BUILD_TYPE=Release
74+
# -DCMAKE_INSTALL_PREFIX=${PYTORCH_INSTALL_DIR}
75+
# # -DCMAKE_POLICY_VERSION_MINIMUM=3.5
76+
CMAKE_ARGS
77+
-DBUILD_SHARED_LIBS=OFF # Build static libraries
78+
-DBUILD_PYTHON=OFF # Don’t build Python bindings
79+
-DBUILD_TEST=OFF # Don’t build tests
80+
-DUSE_CUDA=OFF # Disable CUDA
81+
-DUSE_CUDNN=OFF # Disable cuDNN
82+
-DUSE_MKLDNN=OFF # Disable MKLDNN for simplicity
83+
-DCMAKE_BUILD_TYPE=Release
84+
-DCMAKE_INSTALL_PREFIX=${PYTORCH_INSTALL_DIR}
85+
7786
INSTALL_DIR ${PYTORCH_INSTALL_DIR} # Where to install
7887

7988
# LOG_DOWNLOAD ON

0 commit comments

Comments
 (0)