diff options
| author | Petr Mrázek <peterix@gmail.com> | 2015-09-28 20:51:00 +0200 |
|---|---|---|
| committer | Petr Mrázek <peterix@gmail.com> | 2015-09-28 20:51:00 +0200 |
| commit | 5d0ffb50a526173ce58ae57136bf5d79a7e1920d (patch) | |
| tree | b40612a8c9a548c7b920eafc3178f15ee04b59e6 | |
| parent | 9d17b0a9b93e684a5ac6cac8f70d9a7909a877cf (diff) | |
| download | Project-Tick-5d0ffb50a526173ce58ae57136bf5d79a7e1920d.tar.gz Project-Tick-5d0ffb50a526173ce58ae57136bf5d79a7e1920d.zip | |
Bump cmake to 3.1 and use the new CXX_STANDARD settings
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cda1297027..2472cb2b9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.1) project(libnbt++ VERSION 2.3) @@ -43,7 +43,7 @@ target_include_directories(nbt++ PUBLIC include ${CMAKE_CURRENT_BINARY_DIR}) if(NBT_USE_ZLIB) target_link_libraries(nbt++ z) endif() -target_compile_options(nbt++ PUBLIC -std=c++11) +set_property(TARGET nbt++ PROPERTY CXX_STANDARD 11) generate_export_header(nbt++ BASE_NAME nbt) if(${BUILD_SHARED_LIBS}) |
