1
0

Upgrade to C++17 [CMake] (#4717)

* Make our CMake slightly less insane
This commit is contained in:
Tiger Wang
2020-05-16 20:59:10 +01:00
committed by GitHub
parent 21ef9e3819
commit 9e8598fb1c
55 changed files with 457 additions and 762 deletions

View File

@@ -1,12 +1,7 @@
cmake_minimum_required(VERSION 3.0.2)
enable_testing()
include_directories(${CMAKE_SOURCE_DIR}/src/)
include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/lib/)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_definitions(-DTEST_GLOBALS=1)
set (SHARED_SRCS
${CMAKE_SOURCE_DIR}/src/BiomeDef.cpp
${CMAKE_SOURCE_DIR}/src/BlockArea.cpp
@@ -66,7 +61,7 @@ set (SRCS
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_flags_cxx("-Wno-error=global-constructors")
add_compile_options("-Wno-error=global-constructors")
endif()