mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-14 09:52:01 -05:00
Need to set ENV{CUDAHOSTCXX}, too.
No variables are used by check_language and hence we need ti make nvc aware of the host compiler by the environment variable.
This commit is contained in:
1 parent
2d32fde1c9
commit
6a0bad0243
1 file changed
+1
@@ -109,6 +109,7 @@ if(NOT CMAKE_DISABLE_FIND_PACKAGE_CUDA AND
|
||||
# in "${NVCC} -ccbin=${CMAKE_CXX_COMPILER} -ccbin ${CMAKE_CXX_COMPILER}"
|
||||
# which causes nvcc to abort
|
||||
set(CMAKE_CUDA_HOST_COMPILER ${CMAKE_CXX_COMPILER})
|
||||
set(ENV{CUDAHOSTCXX} ${CMAKE_CUDA_HOST_COMPILER}) # The only thing honored by check_language(CUDA)!
|
||||
endif()
|
||||
include(CheckLanguage)
|
||||
check_language(CUDA)
|
||||
|
||||
Reference in new issue
Block a user