Skip to content

Commit 1596ea8

Browse files
[OpenMP] Fix import library installation with MinGW
Patch by mati865@gmail.com Differential Revision: https://reviews.llvm.org/D86552
1 parent 603a8a6 commit 1596ea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openmp/runtime/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ if(WIN32)
195195
# the import library is "re-linked" to include kmp_import.cpp which prevents
196196
# linking of both Visual Studio OpenMP and newly built OpenMP
197197
set_source_files_properties(kmp_import.cpp PROPERTIES COMPILE_FLAGS "${LIBOMP_CONFIGURED_CXXFLAGS}")
198-
set(LIBOMP_IMP_LIB_FILE ${LIBOMP_LIB_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX})
198+
set(LIBOMP_IMP_LIB_FILE ${LIBOMP_LIB_NAME}${CMAKE_IMPORT_LIBRARY_SUFFIX})
199199
set(LIBOMP_GENERATED_IMP_LIB_FILENAME ${LIBOMP_LIB_FILE}${CMAKE_STATIC_LIBRARY_SUFFIX})
200200
set_target_properties(omp PROPERTIES
201201
VERSION ${LIBOMP_VERSION_MAJOR}.${LIBOMP_VERSION_MINOR} # uses /version flag

0 commit comments

Comments
 (0)