Changeset e5c2a9


Ignore:
Timestamp:
03/13/12 14:59:44 (14 months ago)
Author:
Erik Johansson <erik@…>
Branches:
('master', 'a231b56d57a69513303d0061f5fa3e3cd51c85c1')('controller-upgrade', '72b31cc86eeeef18f1371a3067b6e8a5ca21abfc')('windows_service_fixes', 'df6bd2788365991d36d5af2a75833b8de2a5860f')
Children:
104ce0fb237cdf752e06b6cebeb50e660bd0564c
Parents:
4760aa8a3272c695320214ca23b9bc78ee947f0d
git-author:
Erik Johansson <erik@ejohansson.se>2012-03-13 14:59:44+01:00
git-committer:
Erik Johansson <erik@ejohansson.se>2012-03-13 14:59:44+01:00
Message:

Store configured settings paths in header file

Location:
telldus-core/service
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • telldus-core/service/CMakeLists.txt

    r9500c4 re5c2a9  
    241241        INSTALL(TARGETS ${telldus-service_TARGET} RUNTIME DESTINATION sbin) 
    242242        SET(SYSCONF_INSTALL_DIR "/etc" CACHE PATH "The sysconfig install dir (default prefix/etc)" ) 
    243         SET(STATE_INSTALL_DIR   "/var/state" CACHE PATH "The directory to store state information of the devices" ) 
    244  
     243 
     244        IF (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") 
     245                SET(STATE_INSTALL_DIR "/var/spool" CACHE PATH "The directory to store state information of the devices") 
     246        ELSE (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") 
     247                SET(STATE_INSTALL_DIR "/var/state" CACHE PATH "The directory to store state information of the devices") 
     248        ENDIF (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") 
     249 
     250        CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/SettingsConfusePaths.h.in 
     251                ${CMAKE_CURRENT_BINARY_DIR}/SettingsConfusePaths.h) 
     252        INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) 
     253         
    245254        INSTALL(FILES tellstick.conf 
    246255                DESTINATION ${SYSCONF_INSTALL_DIR} 
Note: See TracChangeset for help on using the changeset viewer.