[Openmp-commits] [openmp] [OpenMP][OMPD] libompd must not link libomp (PR #83119)
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Tue Feb 27 06:27:27 PST 2024
================
@@ -13,7 +13,7 @@ cmake_minimum_required(VERSION 3.20.0)
add_library (ompd SHARED TargetValue.cpp omp-debug.cpp omp-state.cpp omp-icv.cpp)
-target_link_libraries(ompd omp) # ensure generated import library is created first
+add_dependencies(ompd omp) # ensure generated import library is created first
----------------
shiltian wrote:
Can you put a comment here to say, OMPD should never directly link to `omp`?
https://github.com/llvm/llvm-project/pull/83119
More information about the Openmp-commits
mailing list