[uchardet: 1/29] CMake: allow installing binary to non-default dir



commit 36665da832cca6621b86f05fb0ff64551c114051
Author: Ricardo Constantino (:RiCON) <wiiaboo gmail com>
Date:   Wed Mar 16 14:17:25 2016 +0000

    CMake: allow installing binary to non-default dir

 CMakeLists.txt |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4f279e1..223b53f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,6 +37,10 @@ set (DIR_SHARE ${DIR_PREFIX}/share)
 set (DIR_BIN ${DIR_PREFIX}/bin)
 set (DIR_ETC ${DIR_PREFIX}/etc)
 
+if (DEFINED CMAKE_INSTALL_BINDIR)
+       set (DIR_BIN ${CMAKE_INSTALL_BINDIR})
+endif (DEFINED CMAKE_INSTALL_BINDIR)
+
 if (DEFINED CMAKE_INSTALL_LIBDIR)
        set (DIR_LIBRARY ${CMAKE_INSTALL_LIBDIR})
        set (DIR_LIBRARY_STATIC ${CMAKE_INSTALL_LIBDIR})


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]