Skip to content

Commit

Permalink
remove OpenCL dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheng Di committed Mar 23, 2019
1 parent 281fa0e commit 11636b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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 $<$<CONFIG:Debug>:-O3 -Wall -Wextra -Wpedantic -Wno-unused-parameter>
)
Expand Down

0 comments on commit 11636b4

Please sign in to comment.