Skip to content

Commit

Permalink
remove expanding c/cpp/cxx flags; breaks cmake cxx detection
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Dec 10, 2020
1 parent f3a86ff commit 12281d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions recipe/build-lib.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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!"

Expand Down
3 changes: 0 additions & 3 deletions recipe/build-pkg.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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!"

Expand Down

0 comments on commit 12281d2

Please sign in to comment.