From 40cc748678842d97cc11ffc90fdfde78616fb168 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Mon, 28 Mar 2016 22:23:27 +0530 Subject: [PATCH] Fixed cmake not honoring user specified HIP_INSTALL_DIR --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a69c66edc8..2f11a2642f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,9 +8,9 @@ set(HSA_DIR "/opt/hsa" CACHE PATH "Path to which HSA runtime has been installed" message(STATUS "Looking for HSA runtime in: " ${HSA_DIR}) if(CMAKE_BUILD_TYPE MATCHES Debug) - set(HIP_INSTALL_DIR ${CMAKE_SOURCE_DIR} CACHE PATH "Installation path for HIP" FORCE) + set(HIP_INSTALL_DIR ${CMAKE_SOURCE_DIR} CACHE PATH "Installation path for HIP") else() - set(HIP_INSTALL_DIR "/opt/hip" CACHE PATH "Installation path for HIP" FORCE) + set(HIP_INSTALL_DIR "/opt/hip" CACHE PATH "Installation path for HIP") endif() message(STATUS "HIP will be installed in: " ${HIP_INSTALL_DIR})