From 067ea6cc4cf4f899a307a80b78c1b71f4ea4e9cf Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 20 Sep 2016 20:46:49 +0530 Subject: [PATCH] FindHIP: Fix bug in parsing source files and options Change-Id: Ib1c793dd19d61b387da3f5894c4e37c66f02b753 --- cmake/FindHIP.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/FindHIP.cmake b/cmake/FindHIP.cmake index 64838492e5..5e17af72a5 100644 --- a/cmake/FindHIP.cmake +++ b/cmake/FindHIP.cmake @@ -193,9 +193,15 @@ macro(HIP_GET_SOURCES_AND_OPTIONS _sources _cmake_options _hipcc_options _hcc_op foreach(arg ${ARGN}) if("x${arg}" STREQUAL "xHIPCC_OPTIONS") set(_hipcc_found_options TRUE) + set(_hcc_found_options FALSE) + set(_nvcc_found_options FALSE) elseif("x${arg}" STREQUAL "xHCC_OPTIONS") + set(_hipcc_found_options FALSE) set(_hcc_found_options TRUE) + set(_nvcc_found_options FALSE) elseif("x${arg}" STREQUAL "xNVCC_OPTIONS") + set(_hipcc_found_options FALSE) + set(_hcc_found_options FALSE) set(_nvcc_found_options TRUE) elseif( "x${arg}" STREQUAL "xEXCLUDE_FROM_ALL" OR