From 8e648b1a33ce4e86dba7aa54e9cc88f40c0af274 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Wed, 10 Aug 2016 09:49:07 +0530 Subject: [PATCH] Allow cmake to be run multiple times in directed tests Change-Id: I9d68fdefd9f72895ad4bdb310fcf3c6e52dbbf02 [ROCm/hip commit: 2e9adefd710d69c4633724c9d55cf316956aaf16] --- projects/hip/tests/src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/hip/tests/src/CMakeLists.txt b/projects/hip/tests/src/CMakeLists.txt index 127ebb2507..93887943a0 100644 --- a/projects/hip/tests/src/CMakeLists.txt +++ b/projects/hip/tests/src/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required (VERSION 2.6) +# remove CMAKE_CXX_COMPILER entry from cache since it will be pointing to hipcc +unset(CMAKE_CXX_COMPILER CACHE) message (CMAKE_CXX_COMPILER = ${CMAKE_CXX_COMPILER} ) project (HIP_Unit_Tests)