From 11636b4087f2a409ced706367feb7c055e814d31 Mon Sep 17 00:00:00 2001 From: Sheng Di Date: Fri, 22 Mar 2019 19:48:42 -0500 Subject: [PATCH] remove OpenCL dependency --- CMakeLists.txt | 8 +------- sz/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cb88ef4..e10d472c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ project (sz) enable_testing() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -std=c99 -lm -fopenmp") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -fopenmp") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -std=c++11 -lm -fopenmp") set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_EXTENSIONS OFF) @@ -27,12 +27,6 @@ if (NETCDF_FOUND) include_directories (${NETCDF_INCLUDE_DIRS}) endif () -find_package(OpenCL) -if(OpenCL_FOUND) - include_directories(${OpenCL_INCLUDE_DIRS}) - add_definitions(-DHAVE_OPENCL) -endif() - find_program(TAGS ctags) if(TAGS) add_custom_target(tags ALL diff --git a/sz/CMakeLists.txt b/sz/CMakeLists.txt index 8123e65b..a42a2f0f 100644 --- a/sz/CMakeLists.txt +++ b/sz/CMakeLists.txt @@ -1,7 +1,7 @@ aux_source_directory(src sz_sources) add_library (SZ SHARED ${sz_sources}) -target_link_libraries (SZ zlib zstd ${OpenCL_LIBRARIES}) +target_link_libraries (SZ zlib zstd) target_compile_options(SZ PRIVATE $<$:-O3 -Wall -Wextra -Wpedantic -Wno-unused-parameter> )