summaryrefslogtreecommitdiffstats
path: root/reference/etc
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-05 00:16:56 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-05 00:16:56 +0200
commit2c661323fac0ba5a54d134a49632c31e7c4ffaa1 (patch)
tree4b9f1fb52f7d08ee655d1a9465dc5f3dec0ea0c2 /reference/etc
parente596d761c57a4743e0e0e33bed1ca67a3c3f0d82 (diff)
Adding LANGUAGES to the project. Better compiler version detection
Change-Id: I0c363ad462623d02259ef6cf1812e3fa704c75aa Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'reference/etc')
-rw-r--r--reference/etc/config.cmake1
-rw-r--r--reference/etc/macros.cmake2
2 files changed, 2 insertions, 1 deletions
diff --git a/reference/etc/config.cmake b/reference/etc/config.cmake
index c35e2fd..a88fcf0 100644
--- a/reference/etc/config.cmake
+++ b/reference/etc/config.cmake
@@ -27,6 +27,7 @@ set(PROJECT_ICON "icon.png")
set(PROJECT_AUTHOR "Last Name, First Name")
set(PROJECT_AUTHOR_MAIL "example.man@bigouden.bzh")
set(PROJECT_LICENCE "APL2.0")
+set(PROJECT_LANGUAGES,"C")
# Where are stored config.xml.in and icon.png.in files. Template available at :
# https://gerrit.automotivelinux.org/gerrit/#/admin/projects/apps/app-templates
diff --git a/reference/etc/macros.cmake b/reference/etc/macros.cmake
index a002d95..72f55f0 100644
--- a/reference/etc/macros.cmake
+++ b/reference/etc/macros.cmake
@@ -131,7 +131,7 @@ set(CMP0048 1)
# Include project configuration
# ------------------------------
-project(${NAME} VERSION ${VERSION})
+project(${PROJECT_NAME} VERSION ${PROJECT_VERSION} LANGUAGES ${PROJECT_LANGUAGES})
set(PROJECT_WGT_DIR "packaging/wgt" CACHE PATH "Subpath to the widget directory")
set(PROJECT_LIBDIR "libs" CACHE PATH "Subpath to libraries")
set(PROJECT_RESOURCES "data" CACHE PATH "Subpath to data")