${DEAL_II_HAVE_CXX11}
)
LIST(APPEND DEAL_II_FEATURES CXX11)
+SET(FEATURE_CXX11_PROCESSED TRUE)
OPTION(DEAL_II_WITH_CXX14
"Compile deal.II using C++14 language standard."
${DEAL_II_HAVE_CXX14}
)
LIST(APPEND DEAL_II_FEATURES CXX14)
+SET(FEATURE_CXX14_PROCESSED TRUE)
#
# Bail out if user requested C++11 support (DEAL_II_WITH_CXX11) but support
# Configuration for cuda support:
#
-MACRO(FEATURE_CUDA_FIND_EXTERNAL var)
+#
+# FindCUDA needs a compiler set up with C++11 support. Thus, only configure
+# if deal.II was configured with C++11 support.
+#
+SET(FEATURE_CUDA_DEPENDS CXX11)
+MACRO(FEATURE_CUDA_FIND_EXTERNAL var)
FIND_PACKAGE(CUDA)
IF(CUDA_FOUND)
- IF(NOT DEAL_II_WITH_CXX11)
- MESSAGE(FATAL_ERROR "\n"
- "CUDA only supported with C++11. Reconfigure with DEAL_II_WITH_CXX11=ON.\n"
- )
- ENDIF()
-
SET(CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE FALSE)
- # Activate C++11 since we require it above.
-
SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -std=c++11)
# FIXME: CUDA compiler NVCC doesn't support C++14.