aboutsummaryrefslogtreecommitdiff
path: root/cmake.deps/cmake/LibtermkeyCMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cmake.deps/cmake/LibtermkeyCMakeLists.txt')
-rw-r--r--cmake.deps/cmake/LibtermkeyCMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake.deps/cmake/LibtermkeyCMakeLists.txt b/cmake.deps/cmake/LibtermkeyCMakeLists.txt
index 4b5a5a4ea8..24d67a7ba5 100644
--- a/cmake.deps/cmake/LibtermkeyCMakeLists.txt
+++ b/cmake.deps/cmake/LibtermkeyCMakeLists.txt
@@ -1,6 +1,12 @@
cmake_minimum_required(VERSION 3.10)
+# Can be removed once minimum version is at least 3.15
+if(POLICY CMP0092)
+ cmake_policy(SET CMP0092 NEW)
+endif()
project(libtermkey C)
+add_compile_options(-w)
+
if(EXISTS ${PROJECT_SOURCE_DIR}/termkey.h.in)
file(STRINGS Makefile TERMKEY_VERSION_MAJOR REGEX "VERSION_MAJOR")
string(REGEX MATCH "[0-9]+" TERMKEY_VERSION_MAJOR ${TERMKEY_VERSION_MAJOR})