cmake: add (commented out) lines for static libc
[android/external-libkmsxx.git] / CMakeLists.txt
index 1fe580e4a0af6ab5e9a241e0f7297a365f1bce4b..433418e1414b6a1d34aa4c043c8cae06a5497090 100644 (file)
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 2.8)
 project(kms++)
 
 IF(NOT CMAKE_BUILD_TYPE)
@@ -12,6 +12,9 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
 
 set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
 
+# static link libc
+# set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
+
 find_package(PkgConfig REQUIRED)
 pkg_check_modules(LIBDRM libdrm REQUIRED)