From 5aad12517eade12206a1f3d4da612efcbabb007d Mon Sep 17 00:00:00 2001 From: Ronan Collobert Date: Fri, 25 Oct 2013 16:33:40 +0200 Subject: workaround cmake relative path bug --- cmake/QtLuaPaths.cmake | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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. -- cgit v1.2.3