diff --git a/CMakeLists.txt b/CMakeLists.txt index d8ef04736..f6e6802c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12.1) +CMAKE_MINIMUM_REQUIRED(VERSION 3.5) SET(PROJECT_VER_MAJOR 0) SET(PROJECT_VER_MINOR 2) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 8741f67fd..bd79025b1 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,4 +1,4 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12.1) +CMAKE_MINIMUM_REQUIRED(VERSION 3.5) if(WIN32 AND NOT MINGW) if(NOT DEFINED CMAKE_DEBUG_POSTFIX) diff --git a/src/opencl_depth_packet_processor.cpp b/src/opencl_depth_packet_processor.cpp index d8db14d3c..d95f50981 100644 --- a/src/opencl_depth_packet_processor.cpp +++ b/src/opencl_depth_packet_processor.cpp @@ -251,6 +251,9 @@ class OpenCLDepthPacketProcessorImpl: public WithPerfLogging newIrFrame(); newDepthFrame(); +#ifdef CL_ICDL_VERSION +#undef CL_ICDL_VERSION +#endif const int CL_ICDL_VERSION = 2; typedef cl_int (*icdloader_func)(int, size_t, void*, size_t*); #ifdef _MSC_VER diff --git a/src/opencl_kde_depth_packet_processor.cpp b/src/opencl_kde_depth_packet_processor.cpp index 98dbdff54..9d38ac5aa 100644 --- a/src/opencl_kde_depth_packet_processor.cpp +++ b/src/opencl_kde_depth_packet_processor.cpp @@ -259,6 +259,9 @@ class OpenCLKdeDepthPacketProcessorImpl: public WithPerfLogging newIrFrame(); newDepthFrame(); +#ifdef CL_ICDL_VERSION +#undef CL_ICDL_VERSION +#endif const int CL_ICDL_VERSION = 2; typedef cl_int (*icdloader_func)(int, size_t, void*, size_t*); #ifdef _MSC_VER diff --git a/tools/streamer_recorder/CMakeLists.txt b/tools/streamer_recorder/CMakeLists.txt index 77f203f5e..9986ebced 100644 --- a/tools/streamer_recorder/CMakeLists.txt +++ b/tools/streamer_recorder/CMakeLists.txt @@ -1,4 +1,4 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12.1) +CMAKE_MINIMUM_REQUIRED(VERSION 3.5) if(WIN32 AND NOT MINGW) if(NOT DEFINED CMAKE_DEBUG_POSTFIX)