diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index b9ebcc6e71a..e14c41ca803 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -108,6 +108,10 @@ if (WITH_GUI) ) endif() +if (WITH_PDAL) + include_directories(SYSTEM "${PDAL_INCLUDE_DIR}") +endif() + if(NOT ENABLE_TESTS) set(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} TESTS) endif() diff --git a/tests/src/core/CMakeLists.txt b/tests/src/core/CMakeLists.txt index c138f150e94..29cf23b358d 100644 --- a/tests/src/core/CMakeLists.txt +++ b/tests/src/core/CMakeLists.txt @@ -12,6 +12,10 @@ if(HAVE_OPENCL) include_directories(SYSTEM ${OpenCL_INCLUDE_DIRS}) endif() +if (WITH_PDAL) + include_directories(SYSTEM "${PDAL_INCLUDE_DIR}") +endif() + ############################################################# # Tests: