Always define TINT_BUILD_SPV_PARSER.

This CL always sets the define for building the SPV_PARSER. This fixes
undefined errors on certian platforms.

Change-Id: I5f84295cb7ddf23d64efd9a4d00717c84bc698aa
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/16800
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: David Neto <dneto@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1c4bffc..d6c60a2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,9 +69,9 @@
 function(tint_default_compile_options TARGET)
   include_directories("${PROJECT_SOURCE_DIR}")
 
-  if (${TINT_BUILD_SPV_PARSER})
-    target_compile_definitions(${TARGET} PRIVATE -DTINT_BUILD_SPV_PARSER=1)
-  endif()
+  target_compile_definitions(${TARGET} PRIVATE
+      -DTINT_BUILD_SPV_PARSER=$<BOOL:${TINT_BUILD_SPV_PARSER}>)
+
   if (${COMPILER_IS_LIKE_GNU})
     target_compile_options(${TARGET} PRIVATE
       -std=c++14