Commit 5bf0e864 authored by Romain Pokrzywka's avatar Romain Pokrzywka Committed by Ralf Habacker

fixed and simplified install prefix handling with cmake

parent f554db98
......@@ -200,14 +200,17 @@ ENABLE_TESTING()
########### basic vars ###############
if (DBUSDIR)
set(DBUS_INSTALL_DIR "${DBUSDIR}" CACHE TYPE STRING)
else (DBUSDIR)
set(DBUS_INSTALL_DIR "$ENV{DBUSDIR}" CACHE TYPE STRING)
set(DBUS_INSTALL_DIR "${DBUSDIR}")
endif (DBUSDIR)
if (NOT DBUS_INSTALL_DIR)
set(DBUS_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}" CACHE TYPE STRING)
endif (NOT DBUS_INSTALL_DIR)
if ($ENV{DBUSDIR})
set(DBUS_INSTALL_DIR "$ENV{DBUSDIR}")
endif ($ENV{DBUSDIR})
if (DBUS_INSTALL_DIR)
set(CMAKE_INSTALL_PREFIX "${DBUS_INSTALL_DIR}" CACHE TYPE PATH FORCE)
else (DBUS_INSTALL_DIR)
set(DBUS_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}")
endif (DBUS_INSTALL_DIR)
# TODO: setting EXPANDED_... has nothing to do with DBUS_INSTALL_SYSTEM_LIBS
if (DBUS_INSTALL_SYSTEM_LIBS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment