Mailinglist Archive: zypp-commit (301 mails)

< Previous Next >
[zypp-commit] r7481 - /trunk/libzypp/CMakeLists.txt
  • From: dmacvicar@xxxxxxxxxxxxxxxx
  • Date: Thu, 11 Oct 2007 10:16:30 -0000
  • Message-id: <20071011101630.31F713519B@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages