From 90f85069c69a939d38373e2b9b2515eceb47f971 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Sun, 8 Dec 2019 23:08:45 +0200 Subject: [PATCH] Bitbucket pipelines building fails because the CUDA include dir does not seem to be included for some reason. This is an attempted fix --- src/core/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 5693c85..443ec2a 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -21,8 +21,8 @@ add_dependencies(astaroth_kernels dsl_headers) # Compile core add_library(astaroth_core STATIC astaroth.cc node.cc device.cc) -target_include_directories(astaroth_core PRIVATE . ${CUDA_INCLUDE_DIRS}) -target_link_libraries(astaroth_core m cudart astaroth_kernels) +target_include_directories(astaroth_core PRIVATE . "${CUDA_INCLUDE_DIRS}") +target_link_libraries(astaroth_core m astaroth_kernels "${CUDA_LIBRARIES}") target_compile_definitions(astaroth_core PRIVATE AC_USE_CUDA_RUNTIME_API) set_target_properties(astaroth_core PROPERTIES POSITION_INDEPENDENT_CODE ON) add_dependencies(astaroth_kernels dsl_headers)