mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06: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:
parent
2d32fde1c9
commit
6a0bad0243
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user