xref: /OK3568_Linux_fs/buildroot/package/ympd/0001-only-c-language.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunympd is implemented only in C
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunBy default, CMake assumes that the project is using both C and C++. By
4*4882a593Smuzhiyunexplicitly passing 'C' as argument of the project() macro, we tell
5*4882a593SmuzhiyunCMake that only C is used, which prevents CMake from checking if a C++
6*4882a593Smuzhiyuncompiler exists.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunIndex: b/CMakeLists.txt
11*4882a593Smuzhiyun===================================================================
12*4882a593Smuzhiyun--- a/CMakeLists.txt
13*4882a593Smuzhiyun+++ b/CMakeLists.txt
14*4882a593Smuzhiyun@@ -1,6 +1,6 @@
15*4882a593Smuzhiyun cmake_minimum_required(VERSION 2.6)
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun-project (ympd)
18*4882a593Smuzhiyun+project (ympd C)
19*4882a593Smuzhiyun set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/")
20*4882a593Smuzhiyun set(CPACK_PACKAGE_VERSION_MAJOR "1")
21*4882a593Smuzhiyun set(CPACK_PACKAGE_VERSION_MINOR "2")
22