JuliaStrings / utf8proc

a clean C library for processing UTF-8 Unicode data

Home Page:http://juliastrings.github.io/utf8proc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Patch] Install libraries in CMAKE_INSTALL_LIBDIR

epsilon-0 opened this issue · comments

Instead of always using lib use the default library location as defined by the system settings

The patch is from Gentoo Science project.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index bfc3f9b..8fef4af 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -52,8 +52,8 @@ set_target_properties (utf8proc PROPERTIES
 if (UTF8PROC_INSTALL)
   install(TARGETS utf8proc
     RUNTIME DESTINATION bin
-    LIBRARY DESTINATION lib
-    ARCHIVE DESTINATION lib)
+    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
 
   install(
     FILES

Thanks,
Aisha