mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Fix PLUGIN_PATH when FALKON_INSTALL_PLUGINDIR is absolute
This commit is contained in:
parent
b6288358ef
commit
4d006b56b5
@ -30,7 +30,11 @@ if (UNIX AND NOT APPLE)
|
||||
else()
|
||||
set(FALKON_INSTALL_PLUGINDIR "${KDE_INSTALL_PLUGINDIR}")
|
||||
endif()
|
||||
add_definitions(-DPLUGIN_PATH=\"${CMAKE_INSTALL_PREFIX}/${FALKON_INSTALL_PLUGINDIR}\")
|
||||
if (IS_ABSOLUTE ${FALKON_INSTALL_PLUGINDIR})
|
||||
add_definitions(-DPLUGIN_PATH=\"${FALKON_INSTALL_PLUGINDIR}\")
|
||||
else()
|
||||
add_definitions(-DPLUGIN_PATH=\"${CMAKE_INSTALL_PREFIX}/${FALKON_INSTALL_PLUGINDIR}\")
|
||||
endif()
|
||||
|
||||
# Version (TODO: move to a generated header once qmake support is dropped, to avoid full recompilations when changing this
|
||||
add_definitions(-DFALKON_VERSION=\"${PROJECT_VERSION}\")
|
||||
|
Loading…
Reference in New Issue
Block a user