summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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]*")