diff options
author | Ricardo Constantino (:RiCON) <wiiaboo@gmail.com> | 2016-03-16 14:17:25 +0000 |
---|---|---|
committer | Ricardo Constantino (:RiCON) <wiiaboo@gmail.com> | 2016-03-16 14:17:25 +0000 |
commit | 36665da832cca6621b86f05fb0ff64551c114051 (patch) | |
tree | 811c740d5a9d20e573cc35d90e1c515b567dcf34 /CMakeLists.txt | |
parent | 1694999bcece95e6e7fad50e83c7edcc1efa95ef (diff) |
CMake: allow installing binary to non-default dir
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | 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}) |