~dobey/indicator-printers/cpp-refactor

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Rodney Dawes
  • Date: 2017-01-10 21:54:23 UTC
  • Revision ID: rodney.dawes@canonical.com-20170110215423-r2ry97xa5imfo5gz
Fix libexcdir replacement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
### Install path variables
8
8
include (GNUInstallDirs)
 
9
if (EXISTS "/etc/debian_version") # Workaround for libexecdir on debian
 
10
  set (CMAKE_INSTALL_LIBEXECDIR "${CMAKE_INSTALL_LIBDIR}")
 
11
  set (CMAKE_INSTALL_FULL_LIBEXECDIR "${CMAKE_INSTALL_FULL_LIBDIR}")
 
12
endif ()
 
13
set (CMAKE_INSTALL_PKGLIBEXECDIR "${CMAKE_INSTALL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}")
 
14
set (CMAKE_INSTALL_FULL_PKGLIBEXECDIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}")
9
15
 
10
16
### Always Be Testing
11
17
enable_testing()