Bug 337036 - PolkitQt5-1's cmake config busted
Summary: PolkitQt5-1's cmake config busted
Status: RESOLVED FIXED
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-04 09:23 UTC by Harald Sitter
Modified: 2018-04-24 00:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Sitter 2014-07-04 09:23:35 UTC
include dir doesn't get expanded with install_dir effectively rendering the include dir variables broken

if(NOT POLKITQT-1_INSTALL_DIR)
   set(POLKITQT-1_INSTALL_DIR "/opt/project-neon5")
endif(NOT POLKITQT-1_INSTALL_DIR)

set(POLKITQT-1_INCLUDE_DIR              "include/polkit-qt5-1")
set(POLKITQT-1_INCLUDE_DIRS             "${POLKITQT-1_INCLUDE_DIR}")


will result in a path relative to the source directory of a project using the config

for example:

cd /home/me/src/git/k/libqapt/build/src/worker && /usr/bin/c++   -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -D_BSD_SOURCE -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=500 -std=c++0x -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -fexceptions -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline -fPIE -I/home/me/src/git/k/libqapt/build/src/worker -I/home/me/src/git/k/libqapt/src/worker -I/home/me/src/git/k/libqapt -I/home/me/src/git/k/libqapt/build -I/home/me/src/git/k/libqapt/src/worker/include/polkit-qt5-1 -I/home/me/src/git/k/libqapt/src -I/home/me/src/git/k/libqapt/src/.. -I/home/me/src/git/k/libqapt/build/src/.. -I/home/me/src/git/k/libqapt/build/src -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/usr/include/qt5/QtDBus -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui    -o CMakeFiles/qaptworker2.dir/transaction.cpp.o -c /home/me/src/git/k/libqapt/src/worker/transaction.cpp


Reproducible: Always