SWDEV-1 - Set CMAKE_POSITION_INDEPENDENT_CODE to ON

Change-Id: I95e4166e9fa96bde10a54a4842becce4ab554b22


[ROCm/clr commit: daf33f9d38]
This commit is contained in:
Jason Tang
2022-04-23 16:13:49 -04:00
parent 757ad58402
commit 9e85fabc48
+2
View File
@@ -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")