FindHIP: added new macro HIP_RESET_FLAGS

Change-Id: I0af491f6689abf1c1b5691261fe1f3e61a5d916d
这个提交包含在:
Maneesh Gupta
2017-02-27 13:11:11 +05:30
父节点 2e245ae58c
当前提交 470dd2fbcf
+15
查看文件
@@ -178,6 +178,21 @@ hip_find_helper_file(run_make2cmake cmake)
hip_find_helper_file(run_hipcc cmake)
###############################################################################
###############################################################################
# MACRO: Reset compiler flags
###############################################################################
macro(HIP_RESET_FLAGS)
unset(HIP_HIPCC_FLAGS)
unset(HIP_HCC_FLAGS)
unset(HIP_NVCC_FLAGS)
foreach(config ${_hip_configuration_types})
string(TOUPPER ${config} config_upper)
unset(HIP_HIPCC_FLAGS_${config_upper})
unset(HIP_HCC_FLAGS_${config_upper})
unset(HIP_NVCC_FLAGS_${config_upper})
endforeach()
endmacro()
###############################################################################
# MACRO: Separate the options from the sources
###############################################################################