Merge pull request #6 from akien-mga/cmake-3.12

CMake: Bump required version to 3.12 for add_compile_definitions
This commit is contained in:
Noel Berry 2021-01-04 00:20:17 -08:00 committed by GitHub
commit 63466dc2ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.6) cmake_minimum_required(VERSION 3.12)
project(blah) project(blah)
# C++ version # C++ version
@ -98,4 +98,4 @@ if (SDL2_ENABLED)
set(LIBS ${LIBS} ${SDL2_LIBRARIES}) set(LIBS ${LIBS} ${SDL2_LIBRARIES})
endif() endif()
target_link_libraries(blah PUBLIC ${LIBS}) target_link_libraries(blah PUBLIC ${LIBS})

View File

@ -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! ☆** **☆ This will likely see breaking changes! Use at your own risk! ☆**
#### building #### building
- Requires C++17 and CMake - Requires C++17 and CMake 3.12+
- Platform Backend - 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` - [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 - Graphics Backend