Fixed cmake not honoring user specified HIP_INSTALL_DIR

This commit is contained in:
Maneesh Gupta
2016-03-28 22:23:27 +05:30
bovenliggende 1806979e72
commit 40cc748678
+2 -2
Bestand weergeven
@@ -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})