[OpenMP] [OMPD] OPENMP_INSTALL_LIBDIR is set for the install dir
authorVignesh Balasubramanian <Vignesh.Balasubrmanian@amd.com>
Mon, 13 Sep 2021 04:47:44 +0000 (10:17 +0530)
committerVignesh Balasubramanian <Vignesh.Balasubrmanian@amd.com>
Mon, 13 Sep 2021 04:55:50 +0000 (10:25 +0530)
OPENMP_INSTALL_LIBDIR is set to the installation path of shared and static
libompd.This should avoid the mixing of 32 and 64 bit on same path in
multi-lib set-up.

Reviewed By: @mceier
Differential Revision: https://reviews.llvm.org/D109352

openmp/libompd/src/CMakeLists.txt

index a835926..afd553a 100644 (file)
@@ -45,6 +45,6 @@ include_directories (
 )
 
 INSTALL( TARGETS ompd
-        LIBRARY DESTINATION lib 
-        ARCHIVE DESTINATION lib/static 
+        LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
+        ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR}
         RUNTIME DESTINATION bin )