diff --git a/runtime/flangrti/CMakeLists.txt b/runtime/flangrti/CMakeLists.txt index 97fe566302c..f21f5ca13b0 100644 --- a/runtime/flangrti/CMakeLists.txt +++ b/runtime/flangrti/CMakeLists.txt @@ -82,14 +82,14 @@ target_link_libraries(flangrti_shared m) if (NOT DEFINED LIBOMP_EXPORT_DIR) find_library( FLANG_LIBOMP - libomp.so + libomp${CMAKE_SHARED_LIBRARY_SUFFIX} HINTS ${CMAKE_BINARY_DIR}/lib) target_link_libraries(flangrti_shared ${FLANG_LIBOMP}) endif() find_library( LIBPGMATH - libpgmath.so + libpgmath${CMAKE_SHARED_LIBRARY_SUFFIX} HINTS ${CMAKE_BINARY_DIR}/lib) target_link_libraries(flangrti_shared ${LIBPGMATH})