Skip to content
Snippets Groups Projects
Commit 276baf03 authored by Benjamin Cumming's avatar Benjamin Cumming Committed by Sam Yates
Browse files

Forward cuda header paths to host compiler (#652)

* Forward CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES to compilation of arbor library and unit tests.

Fixes #651
parent 0b7f88ca
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,6 @@ if(ARB_WITH_GPU)
target_compile_options(arbor-private-deps INTERFACE $<$<COMPILE_LANGUAGE:CUDA>:-gencode=arch=compute_37,code=sm_37>)
target_compile_options(arbor-private-deps INTERFACE $<$<COMPILE_LANGUAGE:CUDA>:-gencode=arch=compute_60,code=sm_60>)
target_compile_options(arbor-private-deps INTERFACE $<$<COMPILE_LANGUAGE:CUDA>:-gencode=arch=compute_70,code=sm_70>)
endif()
# Use libunwind if available for pretty printing stack traces
......
......@@ -92,6 +92,10 @@ add_library(arbor-private-headers INTERFACE)
target_include_directories(arbor-private-headers INTERFACE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>")
if(ARB_WITH_GPU)
target_include_directories(arbor-private-headers INTERFACE ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
endif()
install(TARGETS arbor-private-headers EXPORT arbor-targets)
# Mechanisms, generated from .mod files; sets arbor_mechanism_sources
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment