[DeviceRTL] Fix a CMake multi-step compilation dependency issue.
authorYe Luo <yeluo@anl.gov>
Fri, 7 Oct 2022 00:05:14 +0000 (19:05 -0500)
committerYe Luo <yeluo@anl.gov>
Fri, 7 Oct 2022 00:07:39 +0000 (19:07 -0500)
caused by 92233159035d1b50face95d886901cf99035bd99

openmp/libomptarget/DeviceRTL/CMakeLists.txt

index ab7eaa9..c6ba287 100644 (file)
@@ -244,7 +244,7 @@ function(compileDeviceRTLLibrary target_cpu target_name target_triple)
   endif()
   if("${EXTRACT_TOOL}" STREQUAL "$<TARGET_FILE:llvm-extract>")
     add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/extracted_${bclib_name}
-      DEPENDS opt
+      DEPENDS llvm-extract
       APPEND)
   endif()
   if("${PACKAGER_TOOL}" STREQUAL "$<TARGET_FILE:clang-offload-packager>")