Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/qtlua.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Collobert <ronan@collobert.com>2013-10-25 18:33:40 +0400
committerRonan Collobert <ronan@collobert.com>2013-10-25 18:33:40 +0400
commit5aad12517eade12206a1f3d4da612efcbabb007d (patch)
tree714922f64a5754323d9a605b0ae6ed9682b0e4bc
parentfecaaf545dba356324a2f00a887e150ccc8a3b99 (diff)
workaround cmake relative path bug
-rw-r--r--cmake/QtLuaPaths.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/cmake/QtLuaPaths.cmake b/cmake/QtLuaPaths.cmake
index b1d95bd..a79c937 100644
--- a/cmake/QtLuaPaths.cmake
+++ b/cmake/QtLuaPaths.cmake
@@ -1,3 +1,18 @@
+# workaround another annoying cmake bug
+# http://public.kitware.com/Bug/view.php?id=14462
+# https://awesome.naquadah.org/bugs/index.php?do=details&task_id=869
+MACRO(NORMALIZE_PATH _path_)
+ get_filename_component(${_path_}_abs "${${_path_}}" ABSOLUTE)
+ SET(${_path_} "${${_path_}_abs}")
+ENDMACRO()
+
+NORMALIZE_PATH(LUA_BINDIR)
+NORMALIZE_PATH(LUA_LIBDIR)
+NORMALIZE_PATH(LUA_INCDIR)
+NORMALIZE_PATH(LUADIR)
+NORMALIZE_PATH(LIBDIR)
+NORMALIZE_PATH(CONFDIR)
+
# work-around luarocks *ugly* limitations those guys believe that only few
# directories in their PREFIX should be moved around. i really do not know
# what the hell they are thinking. you know what? it is sad.