summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2008-11-28 01:53:45 +0100
committerTomas Chvatal <scarabeus@gentoo.org>2008-11-28 01:53:45 +0100
commitdaa195f3c8ef8aebd14c52aaeb2f2433122bffe4 (patch)
tree514b508bd13395fe7bfe9e13ceef3e670b55b05e
parent6a09ebc5e0310480b72640d8a07c2e2d3400660d (diff)
Update font install only when we use our bundled font, otherwise we wont need it since we use system one.
-rw-r--r--data/font/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/data/font/CMakeLists.txt b/data/font/CMakeLists.txt
index 14e173b..b80d154 100644
--- a/data/font/CMakeLists.txt
+++ b/data/font/CMakeLists.txt
@@ -9,7 +9,9 @@
###############################################################################
IF ( NOT Server )
FILE ( GLOB files "*.ttf" )
- INSTALL ( FILES ${files}
- DESTINATION ${CMAKE_INSTALL_DATADIR}/${APPNAME}/font/ )
+ IF ( IF "${CMAKE_FONT}" EQUAL "${CMAKE_DATA_PATH}/${APPNAME}/font/DejaVuSans.ttf" )
+ INSTALL ( FILES ${files}
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/${APPNAME}/font/ )
+ ENDIF ( IF "${CMAKE_FONT}" EQUAL "${CMAKE_DATA_PATH}/${APPNAME}/font/DejaVuSans.ttf" )
ENDIF ( NOT Server )
-############################################################################### \ No newline at end of file
+###############################################################################