[Openmp-commits] [openmp] 1596ea8 - [OpenMP] Fix import library installation with MinGW

via Openmp-commits openmp-commits at lists.llvm.org
Wed Aug 26 11:56:32 PDT 2020


Author: AndreyChurbanov
Date: 2020-08-26T21:56:01+03:00
New Revision: 1596ea80fdf3410f94ef9a2548701d26cc81c2f5

URL: https://github.com/llvm/llvm-project/commit/1596ea80fdf3410f94ef9a2548701d26cc81c2f5
DIFF: https://github.com/llvm/llvm-project/commit/1596ea80fdf3410f94ef9a2548701d26cc81c2f5.diff

LOG: [OpenMP] Fix import library installation with MinGW

Patch by mati865 at gmail.com

Differential Revision: https://reviews.llvm.org/D86552

Added: 
    

Modified: 
    openmp/runtime/src/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
index 81275c0483dd..19423f58c6c4 100644
--- a/openmp/runtime/src/CMakeLists.txt
+++ b/openmp/runtime/src/CMakeLists.txt
@@ -195,7 +195,7 @@ if(WIN32)
   # the import library is "re-linked" to include kmp_import.cpp which prevents
   # linking of both Visual Studio OpenMP and newly built OpenMP
   set_source_files_properties(kmp_import.cpp PROPERTIES COMPILE_FLAGS "${LIBOMP_CONFIGURED_CXXFLAGS}")
-  set(LIBOMP_IMP_LIB_FILE ${LIBOMP_LIB_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX})
+  set(LIBOMP_IMP_LIB_FILE ${LIBOMP_LIB_NAME}${CMAKE_IMPORT_LIBRARY_SUFFIX})
   set(LIBOMP_GENERATED_IMP_LIB_FILENAME ${LIBOMP_LIB_FILE}${CMAKE_STATIC_LIBRARY_SUFFIX})
   set_target_properties(omp PROPERTIES
     VERSION ${LIBOMP_VERSION_MAJOR}.${LIBOMP_VERSION_MINOR} # uses /version flag


        


More information about the Openmp-commits mailing list