FindHIP: Fix bug in parsing source files and options
Change-Id: Ib1c793dd19d61b387da3f5894c4e37c66f02b753
This commit is contained in:
@@ -193,9 +193,15 @@ macro(HIP_GET_SOURCES_AND_OPTIONS _sources _cmake_options _hipcc_options _hcc_op
|
|||||||
foreach(arg ${ARGN})
|
foreach(arg ${ARGN})
|
||||||
if("x${arg}" STREQUAL "xHIPCC_OPTIONS")
|
if("x${arg}" STREQUAL "xHIPCC_OPTIONS")
|
||||||
set(_hipcc_found_options TRUE)
|
set(_hipcc_found_options TRUE)
|
||||||
|
set(_hcc_found_options FALSE)
|
||||||
|
set(_nvcc_found_options FALSE)
|
||||||
elseif("x${arg}" STREQUAL "xHCC_OPTIONS")
|
elseif("x${arg}" STREQUAL "xHCC_OPTIONS")
|
||||||
|
set(_hipcc_found_options FALSE)
|
||||||
set(_hcc_found_options TRUE)
|
set(_hcc_found_options TRUE)
|
||||||
|
set(_nvcc_found_options FALSE)
|
||||||
elseif("x${arg}" STREQUAL "xNVCC_OPTIONS")
|
elseif("x${arg}" STREQUAL "xNVCC_OPTIONS")
|
||||||
|
set(_hipcc_found_options FALSE)
|
||||||
|
set(_hcc_found_options FALSE)
|
||||||
set(_nvcc_found_options TRUE)
|
set(_nvcc_found_options TRUE)
|
||||||
elseif(
|
elseif(
|
||||||
"x${arg}" STREQUAL "xEXCLUDE_FROM_ALL" OR
|
"x${arg}" STREQUAL "xEXCLUDE_FROM_ALL" OR
|
||||||
|
|||||||
Reference in New Issue
Block a user