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


[ROCm/hip-tests commit: 173abcfba0]
This commit is contained in:
Ranjith Ramakrishnan
2024-09-10 16:03:29 -07:00
szülő a52b3a0e52
commit b1e16e76ea
4 fájl változott, egészen pontosan 7 új sor hozzáadva és 2 régi sor törölve
@@ -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})
@@ -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()