Strip quotes from target and driver string
This fixes the generation of target and driver booleans. So far,
building IREE e.g. with `-DIREE_HAL_DRIVERS_TO_BUILD="VMLA"` resulted in
the generation of the boolean `IREE_TARGET_BACKEND_"VMLA":BOOL=ON`. The
quotation marks are not desired here and later on checks expect
`IREE_TARGET_BACKEND_VMLA`.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cc96638..b9f3888 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -133,6 +133,7 @@
# Set IREE_HAL_DRIVER_* based on configuration
foreach(_backend ${IREE_HAL_DRIVERS_TO_BUILD})
string(TOUPPER "${_backend}" uppercase_backend)
+ string(REPLACE "\"" "" uppercase_backend ${uppercase_backend})
set(IREE_HAL_DRIVER_${uppercase_backend} ON CACHE BOOL "" FORCE)
endforeach()
@@ -158,6 +159,7 @@
# Set IREE_TARGET_BACKEND_* based on configuration
foreach(_backend ${IREE_TARGET_BACKENDS_TO_BUILD})
string(TOUPPER "${_backend}" uppercase_backend)
+ string(REPLACE "\"" "" uppercase_backend ${uppercase_backend})
set(IREE_TARGET_BACKEND_${uppercase_backend} ON CACHE BOOL "" FORCE)
endforeach()