Skip to content

Commit

Permalink
Properly exporting the CUDA clang flags
Browse files Browse the repository at this point in the history
  • Loading branch information
sithhell committed Sep 7, 2017
1 parent e704254 commit 1d53663
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/templates/HPXConfig.cmake.in
Expand Up @@ -76,9 +76,11 @@ set(HPX_WITH_CUDA_CLANG @HPX_WITH_CUDA_CLANG@)
set(HPX_CUDA_CLANG_FLAGS @HPX_CUDA_CLANG_FLAGS@)

# Set variables used by nvcc
if(HPX_WITH_CUDA AND NOT HPX_WITH_CUDA_CLANG)
find_package(CUDA REQUIRED)
if(HPX_WITH_CUDA)
find_package(CUDA REQUIRED)a
set(HPX_WITH_CUDA_CLANG @HPX_WITH_CUDA_CLANG@)
set(CUDA_SEPARABLE_COMPILATION ON)
set(CUDA_NVCC_FLAGS @CUDA_NVCC_FLAGS@)
set(HPX_CUDA_CLANG_FLAGS @HPX_CUDA_CLANG_FLAGS@)
cuda_include_directories("@HPX_CMAKE_CONF_INCLUDE_DIRS@")
endif()

0 comments on commit 1d53663

Please sign in to comment.