From 9cb9ea5b140aa8fd4f3cdc4f2722206b62c9bee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz> Date: Sat, 19 Mar 2016 16:12:38 +0100 Subject: [PATCH] Fixed tnl-compile script nvcc does not like duplicate arguments, here it failed with nvcc fatal : redefinition of argument 'std' --- tools/tnl-compile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tnl-compile.in b/tools/tnl-compile.in index 3ded556039..62dd15771a 100644 --- a/tools/tnl-compile.in +++ b/tools/tnl-compile.in @@ -7,9 +7,9 @@ CXX_STD_FLAGS="-std=c++11" for option in "$@" do case $option in - --cuda ) CUDA_FLAGS="-DHAVE_CUDA --std c++11 `tnl-cuda-arch`" ;; + --cuda ) CUDA_FLAGS="-DHAVE_CUDA `tnl-cuda-arch`" ;; --debug ) DEBUG_FLAGS="-g -O0" esac done -echo -I@CMAKE_INSTALL_PREFIX@/include/tnl-@tnlVersion@ ${CUDA_FLAGS} ${CXX_STD_FLAGS} ${DEBUG_FLAGS} \ No newline at end of file +echo -I@CMAKE_INSTALL_PREFIX@/include/tnl-@tnlVersion@ ${CUDA_FLAGS} ${CXX_STD_FLAGS} ${DEBUG_FLAGS} -- GitLab