diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c4bbe3f8..cdc11915b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,10 +35,6 @@ option( ELASTIX_BUILD_EXECUTABLE "Build elastix and transformix as executable? ( #--------------------------------------------------------------------- option(ELASTIX_USE_OPENCL "Use OpenCL enabled GPU" OFF) -set(_GPU_depends "") -if(ELASTIX_USE_OPENCL) - list(APPEND _GPU_depends ITKGPUCommon) -endif() # Propagate Torch_DIR to all subdirectories so that find_package(Torch REQUIRED) works in Components/Metrics/Impact/CMakeLists.txt set(Torch_DIR "${Torch_DIR}" CACHE PATH "Path to Torch CMake files") @@ -83,7 +79,6 @@ find_package(ITK 5.4.1 REQUIRED COMPONENTS ITKThresholding ITKTransform ITKTransformFactory - ${_GPU_depends} ${_ITK_io_depends} ) diff --git a/Common/OpenCL/CMakeLists.txt b/Common/OpenCL/CMakeLists.txt index af65c5077..abe78e347 100644 --- a/Common/OpenCL/CMakeLists.txt +++ b/Common/OpenCL/CMakeLists.txt @@ -58,7 +58,6 @@ add_library(elxOpenCL STATIC ${OpenCL_Files}) # Link it against the necessary libraries. elastix_link_itk(elxOpenCL PUBLIC MODULES ITKCommon - ITKGPUCommon ITKTransform ITKImageGrid ITKSmoothing