Fix: Print propagte warning only if GMX_GPU=on
authorRoland Schulz <roland@utk.edu>
Thu, 22 Nov 2012 05:35:08 +0000 (00:35 -0500)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 23 Nov 2012 00:14:55 +0000 (01:14 +0100)
Change-Id: Ia0d2a914d06ea6a538556a9f712f00e63882e946

CMakeLists.txt

index 6921a92e44c013be8aa6394ab15d70abfd7b1d91..08bd1c8f229b2292a3dae84faade95e4a20be3fa 100644 (file)
@@ -683,7 +683,7 @@ gmx_test__finite(HAVE__FINITE)
 include(gmxTestCXX11)
 gmx_test_cxx11(GMX_CXX11 CXX11_FLAG)
 set(GROMACS_CXX_FLAGS "${CXX11_FLAG} ${GROMACS_CXX_FLAGS}")
-if(CXX11_FLAG)
+if(CXX11_FLAG AND GMX_GPU)
     #FIXME: add proper solution for progate all but cxx11 flag
     set(CUDA_PROPAGATE_HOST_FLAGS no)
     message(WARNING "Please manually add compiler flags to CUDA_NVCC_FLAGS. Automatic propogation temporary not working.")