summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorfulup <fulup.arfoll@iot.bzh>2017-04-09 15:25:38 +0200
committerfulup <fulup.arfoll@iot.bzh>2017-04-09 15:25:38 +0200
commit110ce18498753385fb880704490c9d86807a471f (patch)
tree7256689a80cba0c42b387872b54aab3a6e99fcc3 /CMakeLists.txt
parent6e70aac6c9f02496978d3d02efb355d66fb36ceb (diff)
Fixes make install destination dir and README
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 90ecf5c..e9f63db 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -117,6 +117,12 @@ ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG)
# set default include directories
INCLUDE_DIRECTORIES(${EXTRA_INCLUDE_DIRS})
+# If no install dir try to guest some smart default
+if(NOT BINDINGS_INSTALL_DIR)
+ message (status "*** ${CMAKE_INSTALL_FULL_LIBDIR}/${PROJECT_NAME}")
+ set(BINDINGS_INSTALL_DIR ${CMAKE_INSTALL_FULL_LIBDIR}/${PROJECT_NAME})
+endif()
+
# Bindings to compile
# --------------------
file(GLOB filelist "[A-z]*")