From 12281d2f54a9cc2a18575d6929aee9675bf0850d Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Thu, 10 Dec 2020 15:00:58 +0100 Subject: [PATCH] remove expanding c/cpp/cxx flags; breaks cmake cxx detection --- recipe/build-lib.bat | 3 --- recipe/build-pkg.bat | 3 --- 2 files changed, 6 deletions(-) diff --git a/recipe/build-lib.bat b/recipe/build-lib.bat index a540283c..bc28e42e 100644 --- a/recipe/build-lib.bat +++ b/recipe/build-lib.bat @@ -31,9 +31,6 @@ if "%cuda_compiler_version%"=="None" ( set "CUDA_HOME=%CUDA_PATH%" REM With %MY_VAR:\=/% we replace backslashes with forward slashes set "CUDA_TOOLKIT_ROOT_DIR=%CUDA_PATH:\=/%" - set "CFLAGS=%CFLAGS% -I%CUDA_HOME%\include" - set "CPPFLAGS=%CPPFLAGS% -I%CUDA_HOME%\include" - set "CXXFLAGS=%CXXFLAGS% -I%CUDA_HOME%\include" set "CUDA_CONFIG_ARGS=-DCMAKE_CUDA_ARCHITECTURES=!CMAKE_CUDA_ARCHS! -DCUDA_TOOLKIT_ROOT_DIR=!CUDA_TOOLKIT_ROOT_DIR!" diff --git a/recipe/build-pkg.bat b/recipe/build-pkg.bat index 935c120b..1890bc12 100644 --- a/recipe/build-pkg.bat +++ b/recipe/build-pkg.bat @@ -11,9 +11,6 @@ if "%cuda_compiler_version%"=="None" ( set "CUDA_HOME=%CUDA_PATH%" REM With %MY_VAR:\=/% we replace backslashes with forward slashes set "CUDA_TOOLKIT_ROOT_DIR=%CUDA_PATH:\=/%" - set "CFLAGS=%CFLAGS% -I%CUDA_HOME%\include" - set "CPPFLAGS=%CPPFLAGS% -I%CUDA_HOME%\include" - set "CXXFLAGS=%CXXFLAGS% -I%CUDA_HOME%\include" set "CUDA_CONFIG_ARGS=-DCUDA_TOOLKIT_ROOT_DIR=!CUDA_TOOLKIT_ROOT_DIR!"