From: Daniel Arndt Date: Thu, 25 Oct 2018 15:24:03 +0000 (+0200) Subject: Fix cuda-9+ && cmake-3.12+ X-Git-Tag: v9.1.0-rc1~600^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a97894c20ff5a7fb7023d0fcb91774ce4c86b950;p=dealii.git Fix cuda-9+ && cmake-3.12+ --- diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index c79c40e180..7173d25b85 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -120,6 +120,14 @@ FOREACH(build ${DEAL_II_BUILD_TYPES}) RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${DEAL_II_EXECUTABLE_RELDIR}" ) + IF(DEAL_II_WITH_CUDA) + # We need to use the CUDA linker to avoid confusing nvlink with sonaming. + SET_TARGET_PROPERTIES(${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX} + PROPERTIES + LINKER_LANGUAGE "CUDA" + ) + ENDIF() + IF(CMAKE_SYSTEM_NAME MATCHES "Darwin") SET_TARGET_PROPERTIES(${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX} PROPERTIES