From cd73720cb8ae2b1d3a3111e9ac0fb95486f927f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 4 Jan 2021 08:24:02 +0100 Subject: [PATCH] CMake: Bump required version to 3.12 for add_compile_definitions --- CMakeLists.txt | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c7dd9f..f40f882 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.6) +cmake_minimum_required(VERSION 3.12) project(blah) # C++ version @@ -98,4 +98,4 @@ if (SDL2_ENABLED) set(LIBS ${LIBS} ${SDL2_LIBRARIES}) endif() -target_link_libraries(blah PUBLIC ${LIBS}) \ No newline at end of file +target_link_libraries(blah PUBLIC ${LIBS}) diff --git a/README.md b/README.md index 92a33d9..a6da4b7 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Goal is to be simple and use as few dependencies as possible, to maintain easy b **☆ This will likely see breaking changes! Use at your own risk! ☆** #### building - - Requires C++17 and CMake + - Requires C++17 and CMake 3.12+ - Platform Backend - [SDL2](https://github.com/NoelFB/blah/blob/master/private/blah/internal/platform_backend_sdl2.cpp) can be enabled in CMake with `SDL2_ENABLED`, and setting `SDL2_INCLUDE_DIRS` and `SDL2_LIBRARIES` - Graphics Backend