From 5e17ef5d9368aaa9c27397f282475a88aacec350 Mon Sep 17 00:00:00 2001 From: "Quan (Andy) Gan" Date: Mon, 7 Oct 2019 17:26:57 +0800 Subject: [PATCH] [Release] Fix Conda CMake flags (#907) * [Release] Fix CMake flags * more fix --- conda/dgl/bld.bat | 4 ++-- conda/dgl/build.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conda/dgl/bld.bat b/conda/dgl/bld.bat index 7d0da3967e94..bb46464f3571 100644 --- a/conda/dgl/bld.bat +++ b/conda/dgl/bld.bat @@ -1,9 +1,9 @@ REM Needs vcvars64.bat to be called git submodule init -git submodule update +git submodule update --recursive md build cd build -cmake -DUSE_CUDA=%USE_CUDA% -DUSE_OPENMP=ON -DCUDA_ARCH_NAME=All -DCMAKE_CXX_FLAGS="/DDGL_EXPORTS" -DCMAKE_CONFIGURATION_TYPES="Release" .. -G "Visual Studio 15 2017 Win64" || EXIT /B 1 +cmake -DUSE_CUDA=%USE_CUDA% -DUSE_OPENMP=ON -DCUDA_ARCH_NAME=All -DCMAKE_CXX_FLAGS="/DDGL_EXPORTS" -DCMAKE_CONFIGURATION_TYPES="Release" -DDMLC_FORCE_SHARED_CRT=ON .. -G "Visual Studio 15 2017 Win64" || EXIT /B 1 msbuild dgl.sln || EXIT /B 1 COPY Release\dgl.dll . cd ..\python diff --git a/conda/dgl/build.sh b/conda/dgl/build.sh index b365a39f4e78..0668dfc01cd7 100644 --- a/conda/dgl/build.sh +++ b/conda/dgl/build.sh @@ -1,5 +1,5 @@ git submodule init -git submodule update +git submodule update --recursive mkdir build cd build cmake -DUSE_CUDA=$USE_CUDA -DUSE_OPENMP=ON -DCUDA_ARCH_NAME=All ..