summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:43:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:43:42 +0200
commite2d5245359de0cd419d49b1f3c8e1392c5d9342a (patch)
tree8bd0a19cdf7e04d4cc344031b231ffbc2437d527 /cmake
parent863b8cad6d95ed2492ac929066f843664a49998d (diff)
use "static" once, don't propagate from a macro
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake8
1 files changed, 2 insertions, 6 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 1a51413f..36c8d666 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -4,14 +4,10 @@ set(opentrack-perms-exec "${opentrack-perms-dir}")
set(new-hier-path "#pragma once
#ifndef OPENTRACK_NO_QT_PATH
-
# include <QCoreApplication>
# include <QString>
-
-# define OPENTRACK_BASE_PATH (([]() -> const QString& { \\
- const static QString const__path___ = QCoreApplication::applicationDirPath(); \\
- return const__path___; \\
- })())
+# include \"compat/base-path.hpp\"
+# define OPENTRACK_BASE_PATH (application_base_path())
#endif
#define OPENTRACK_LIBRARY_PATH \"${opentrack-hier-path}\"
#define OPENTRACK_DOC_PATH \"${opentrack-hier-doc}\"