diff --git a/projects/clr/opencl/CMakeLists.txt b/projects/clr/opencl/CMakeLists.txt index 5d8d88601d..7684de7318 100644 --- a/projects/clr/opencl/CMakeLists.txt +++ b/projects/clr/opencl/CMakeLists.txt @@ -7,6 +7,8 @@ endif() project(opencl) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) + # Set default libdir to be "lib" for ROCm, distros will override this anyway: set(CMAKE_INSTALL_LIBDIR "lib" CACHE STRING "Library install directory")