blob: 335ff217a9a035aac17f03e1058e1196c8797073 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- CMakeLists.txt.orig 2016-05-06 14:35:17 UTC
+++ CMakeLists.txt
@@ -11,7 +11,7 @@ IF (CMAKE_COMPILER_IS_GNUCC)
ENDIF()
ENDIF()
-ADD_DEFINITIONS("-std=c++1y")
+set(CMAKE_CXX_FLAGS "-std=c++1y")
# set project name and version
PROJECT(ring-client-gnome)
@@ -306,7 +306,10 @@ GLIB_COMPILE_RESOURCES( GLIB_RESOURCES_R
# ADD_SUBDIRECTORY( src/test)
# ENDIF()
+option(FREEBSD_NLS_ON "NLS option: install translations" OFF)
+
# for translations
+IF (FREEBSD_NLS_ON)
IF (GETTEXT_FOUND)
# get all translation files; they're expected to be named using the following convention:
@@ -331,6 +334,7 @@ IF (GETTEXT_FOUND)
ENDFOREACH(PO_FILE)
ENDIF(GETTEXT_FOUND)
+ENDIF(FREEBSD_NLS_ON)
# install and compile glib gsettings schema
add_schema("cx.ring.RingGnome.gschema.xml" GSCHEMA_RING)
|