Skip to content

Commit d7ddf53

Browse files
authored
[openmp] - Ensure openmp-config.cmake honors proper install suffix (llvm#2791)
1 parent 21033ba commit d7ddf53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openmp/runtime/src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ else()
463463
install(TARGETS omp ${export_to_llvmexports} EXPORT openmpTargets ${LIBOMP_INSTALL_KIND}
464464
DESTINATION "${OPENMP_INSTALL_LIBDIR}")
465465
install(EXPORT openmpTargets FILE openmpTargets.cmake NAMESPACE OpenMP::
466-
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/openmp)
466+
DESTINATION ${OPENMP_INSTALL_LIBDIR}/cmake/openmp)
467467
endif()
468468
# Create cmake configuration files
469469
include(CMakePackageConfigHelpers)
@@ -473,7 +473,7 @@ else()
473473
openmp-config.cmake
474474
INSTALL_DESTINATION ${OPENMP_INSTALL_LIBDIR}/cmake/openmp )
475475
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/openmp-config.cmake
476-
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/openmp )
476+
DESTINATION ${OPENMP_INSTALL_LIBDIR}/cmake/openmp )
477477

478478
if(${LIBOMP_INSTALL_ALIASES})
479479
# Create aliases (symlinks) of the library for backwards compatibility

0 commit comments

Comments
 (0)