From: Bruno Turcksin Date: Fri, 19 May 2017 12:50:03 +0000 (-0400) Subject: Guard FIND_PACKAGE(CUDA) with DEAL_II_WITH_CUDA. X-Git-Tag: v9.0.0-rc1~1583^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af0ff34b0b449f62ba422a6fc6088a7d135439b;p=dealii.git Guard FIND_PACKAGE(CUDA) with DEAL_II_WITH_CUDA. --- diff --git a/cmake/macros/macro_deal_ii_pickup_tests.cmake b/cmake/macros/macro_deal_ii_pickup_tests.cmake index 220399bcf9..581cc97fa1 100644 --- a/cmake/macros/macro_deal_ii_pickup_tests.cmake +++ b/cmake/macros/macro_deal_ii_pickup_tests.cmake @@ -81,8 +81,10 @@ MACRO(DEAL_II_PICKUP_TESTS) # Necessary external interpreters and programs: # - FIND_PACKAGE(CUDA) - SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -std=c++11 -arch=sm_35) + IF(DEAL_II_WITH_CUDA) + FIND_PACKAGE(CUDA) + SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -std=c++11 -arch=sm_35) + ENDIF() FIND_PACKAGE(Perl REQUIRED)