diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 85369b0ed47df5a3070ddddbd4a318c73855a3b1..885221703fb738ad20d14c233f69590f636aef1f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -137,7 +137,7 @@ if(CUDA_FOUND)
         endif()
 endif()
 
-target_include_directories (numerics PUBLIC ${CUDA_INCLUDE_DIRS})
+target_include_directories (numerics PUBLIC ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
 target_include_directories (numerics PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
 target_include_directories (numerics PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../openfpm_devices/src/)
 target_include_directories (numerics PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../openfpm_vcluster/src/)
diff --git a/src/Matrix/SparseMatrix.hpp b/src/Matrix/SparseMatrix.hpp
index 66934ef8290157314a60048145bd6605bb6223ad..f1425e6a2af50736e1a6c8136812ae099a0f62f5 100644
--- a/src/Matrix/SparseMatrix.hpp
+++ b/src/Matrix/SparseMatrix.hpp
@@ -8,7 +8,7 @@
 #ifndef OPENFPM_NUMERICS_SRC_MATRIX_SPARSEMATRIX_HPP_
 #define OPENFPM_NUMERICS_SRC_MATRIX_SPARSEMATRIX_HPP_
 
-#include "config/config.h"
+#include "config.h"
 #include "util/linalgebra_lib.hpp"
 #include "Vector/map_vector.hpp"
 #include "VCluster/VCluster.hpp"
diff --git a/src/Vector/Vector.hpp b/src/Vector/Vector.hpp
index 66c5eec9795a63882fdd0d14595cc64410c0398d..144b83a1779e45cc81b572ae0221cae8e3ac9a4d 100644
--- a/src/Vector/Vector.hpp
+++ b/src/Vector/Vector.hpp
@@ -8,7 +8,7 @@
 #ifndef OPENFPM_NUMERICS_SRC_VECTOR_VECTOR_HPP_
 #define OPENFPM_NUMERICS_SRC_VECTOR_VECTOR_HPP_
 
-#include "config/config.h"
+#include "config.h"
 #include "util/linalgebra_lib.hpp"
 
 /*! \brief It store one row value of a vector