From 6d5dcd3973397a8b395a4d465076ae3644f44571 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 22 Aug 2016 21:20:47 +0200 Subject: Custom cmake file for solid. A separate cmake file for solid is needed to append "-std=c99" to the CMAKE_C_FLAGS, because of a bug in flex-2.6.0 which generates a C code with C++-style comments. The bug has been fixed in flex 2.6.1 which is not yet a part of Slackware. --- kde/cmake/solid | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) mode change 120000 => 100644 kde/cmake/solid diff --git a/kde/cmake/solid b/kde/cmake/solid deleted file mode 120000 index ec699d7..0000000 --- a/kde/cmake/solid +++ /dev/null @@ -1 +0,0 @@ -frameworks \ No newline at end of file diff --git a/kde/cmake/solid b/kde/cmake/solid new file mode 100644 index 0000000..c20d2e4 --- /dev/null +++ b/kde/cmake/solid @@ -0,0 +1,28 @@ +# +# Separate cmake file for solid is needed to append "-std=c99" to the +# CMAKE_C_FLAGS, because of a bug in flex-2.6.0 which generates a C code +# with C++-style comments. The bug has been fixed in flex 2.6.1 which +# is not yet a part of Slackware. +# +mkdir build +cd build + cmake \ + $KDE_OPT_ARGS \ + -DKDE_PLATFORM_FEATURE_DISABLE_DEPRECATED=TRUE \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -std=c99" \ + -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS -std=c99" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DSYSCONF_INSTALL_DIR=/etc/kde \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DLIB_INSTALL_DIR=lib$LIBDIRSUFFIX \ + -DLIBEXEC_INSTALL_DIR=lib$LIBDIRSUFFIX \ + -DQML_INSTALL_DIR=lib$LIBDIRSUFFIX/qt5/qml \ + -DQT_PLUGIN_INSTALL_DIR=lib$LIBDIRSUFFIX/qt5/plugins \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ + -Dlconvert_executable=/usr/lib$LIBDIRSUFFIX/qt5/bin/lconvert \ + .. + -- cgit v1.2.3