Author: dmacvicar Date: Thu Oct 11 12:16:29 2007 New Revision: 7481 URL: http://svn.opensuse.org/viewcvs/zypp?rev=7481&view=rev Log: - use sane defaults for those alien parameters so we dont force the developer to specify them Modified: trunk/libzypp/CMakeLists.txt Modified: trunk/libzypp/CMakeLists.txt URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/CMakeLists.txt?rev=7481&r1=7480&r2=7481&view=diff ============================================================================== --- trunk/libzypp/CMakeLists.txt (original) +++ trunk/libzypp/CMakeLists.txt Thu Oct 11 12:16:29 2007 @@ -14,7 +14,12 @@ # system configuration dir (etc) IF( NOT DEFINED SYSCONFDIR ) - SET( SYSCONFDIR /etc ) + IF ( ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr" ) + # if installing in usr, set sysconfg to etc + SET( SYSCONFDIR /etc ) + ELSE ( ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr" ) + SET ( SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/etc" ) + ENDIF ( ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr" ) ENDIF( NOT DEFINED SYSCONFDIR ) MESSAGE(STATUS "Config files will be installed in ${SYSCONFDIR}" ) -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org