From: Michal Witanowski Date: Tue, 20 May 2014 08:09:14 +0000 (+0200) Subject: Fix building without spec X-Git-Tag: submit/tizen/20140723.154014~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F20%2F21420%2F3;p=platform%2Fcore%2Fsecurity%2Fvasum.git Fix building without spec [Cause] Undefined macro. [Solution] SYSTEMD_UNIT_DIR defined in CMakeLists.txt. [Verification] Build with CMake. Change-Id: I42ee402003af07b51d3cf07bc5dadf7a5dc442af Signed-off-by: Michal Witanowski --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 964ba66..88a1eaf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,6 +81,10 @@ IF(NOT DEFINED SHARE_INSTALL_PREFIX) SET(SHARE_INSTALL_PREFIX "${CMAKE_INSTALL_FULL_DATAROOTDIR}") ENDIF(NOT DEFINED SHARE_INSTALL_PREFIX) +IF(NOT DEFINED SYSTEMD_UNIT_DIR) + SET(SYSTEMD_UNIT_DIR "${LIB_INSTALL_DIR}/systemd/system") +ENDIF(NOT DEFINED SYSTEMD_UNIT_DIR) + SET(SC_CONFIG_INSTALL_DIR ${SYSCONF_INSTALL_DIR}/security-containers) SET(SC_DATA_INSTALL_DIR ${SHARE_INSTALL_PREFIX}/security-containers)