Fix CMake build when TINT_BUILD_FUZZERS=1

The `libtint-fuzz` target needs to be defined before reference.

Change-Id: I030f4b3b93a095bd353aa6cff402e351d5b77dca
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/35381
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3a48488..328c203 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -363,13 +363,6 @@
 endif()
 set_target_properties(libtint PROPERTIES OUTPUT_NAME "tint")
 
-if(${TINT_BUILD_SPV_READER} OR ${TINT_BUILD_SPV_WRITER})
-  tint_spvtools_compile_options(libtint)
-  if (${TINT_BUILD_FUZZERS})
-    tint_spvtools_compile_options(libtint-fuzz)
-  endif()
-endif()
-
 if (${TINT_BUILD_FUZZERS})
   # Tint library with fuzzer instrumentation
   add_library(libtint-fuzz ${TINT_LIB_SRCS})
@@ -381,6 +374,13 @@
   target_link_options(libtint-fuzz PUBLIC -fsanitize=fuzzer -fsanitize-coverage=trace-cmp)
 endif()
 
+if(${TINT_BUILD_SPV_READER} OR ${TINT_BUILD_SPV_WRITER})
+  tint_spvtools_compile_options(libtint)
+  if (${TINT_BUILD_FUZZERS})
+    tint_spvtools_compile_options(libtint-fuzz)
+  endif()
+endif()
+
 if(${TINT_BUILD_TESTS})
   set(TINT_TEST_SRCS
     ast/array_accessor_expression_test.cc