r16344 by malex - Fix the bug with SHAREDIR not respecting WANT_VERSIONING in cmake

scribus-commit scribus-commit at lists.scribus.net
Fri Feb 11 22:09:58 CET 2011


Author: malex
Date: Fri Feb 11 21:09:57 2011
New Revision: 16344

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16344
Log:
Fix the bug with SHAREDIR not respecting WANT_VERSIONING in cmake

Modified:
    branches/Version135/Scribus/CMakeLists.txt

Modified: branches/Version135/Scribus/CMakeLists.txt
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16344&path=/branches/Version135/Scribus/CMakeLists.txt
==============================================================================
--- branches/Version135/Scribus/CMakeLists.txt (original)
+++ branches/Version135/Scribus/CMakeLists.txt Fri Feb 11 21:09:57 2011
@@ -251,7 +251,11 @@
 #MAN
 CMAKE_POLICY(SET CMP0005 OLD)
 SET(MANDIR "share/man/")
-SET(SHAREDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/")
+IF(WANT_VERSIONING)
+    SET(SHAREDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/")
+ELSE(WANT_VERSIONING)
+    SET(SHAREDIR "share/${MAIN_DIR_NAME}/")
+ENDIF(WANT_VERSIONING)
 ADD_DEFINITIONS("-DSHAREDIR=\\\"${CMAKE_INSTALL_PREFIX}/${SHAREDIR}\\\"")
 
 #SHARE - use the default on Apple as TAG_VERSION is empty




More information about the scribus-commit mailing list