SWDEV-437189 - Provide option to enable/disable CPACK_SET_DESTDIR

The variable is set as cache, so that user can override.
But the hard coded setting is preventing override. Removed the same

Change-Id: Ica5f9074a6532f465705a8dd1a8f21c6643ef49e
此提交包含在:
Ranjith Ramakrishnan
2024-09-10 16:03:29 -07:00
父節點 e35cc19aaf
當前提交 173abcfba0
共有 4 個檔案被更改,包括 7 行新增2 行删除
+3
查看文件
@@ -24,6 +24,9 @@ project(hip-samples)
option(ENABLE_ADDRESS_SANITIZER "Option to enable ASAN build" OFF)
option(BUILD_SHARED_LIBS "Use this option to link with shared hip runtime libraries" ON)
if(NOT WIN32)
set(CPACK_SET_DESTDIR ON CACHE BOOL "Installer package will install hip-samples to CMAKE_INSTALL_PREFIX instead of CPACK_PACKAGING_INSTALL_PREFIX")
endif()
# Read -DROCM_Path and env{ROCM_PATH}
if(NOT DEFINED ROCM_PATH)
if(DEFINED ENV{ROCM_PATH})
-1
查看文件
@@ -32,7 +32,6 @@ include(GNUInstallDirs)
#############################
# Packaging steps
#############################
set(CPACK_SET_DESTDIR TRUE)
if(NOT DEFINED CPACK_INSTALL_PREFIX)
set(CPACK_INSTALL_PREFIX "/opt/rocm/")
endif()