mirror of
https://github.com/araxiaonline/AscEmu.git
synced 2026-06-13 03:02:22 -04:00
* Fix SRC_TBC_SHADOWLABYRINTH_SCRIPTS_FILES (not added)
fix Installing ./libmysql.lib
Delete USE_PCH_INCLUDES
Revert unset()
language version must be global 😉
* Update CheckSystem.cmake
29 lines
819 B
CMake
29 lines
819 B
CMake
# Copyright (c) 2014-2023 AscEmu Team <http://www.ascemu.org>
|
|
|
|
# Clang >= 8.0.0
|
|
set(CLANG_SUPPORTS_VERSION 8.0.0)
|
|
|
|
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS CLANG_SUPPORTS_VERSION)
|
|
message(FATAL_ERROR "AscEmu requires version ${CLANG_SUPPORTS_VERSION} to build but found ${CMAKE_CXX_COMPILER_VERSION}")
|
|
else ()
|
|
message(STATUS "Minimum version Clang required is ${CLANG_SUPPORTS_VERSION}, found ${CMAKE_CXX_COMPILER_VERSION} - success")
|
|
endif ()
|
|
|
|
message(STATUS "Applying settings for ${CMAKE_CXX_COMPILER}")
|
|
|
|
# check support for unordered_map/set
|
|
add_definitions(-DHAS_CXX0X)
|
|
|
|
# apply base flags (optimization level 2)
|
|
add_compile_options(-O2)
|
|
|
|
if (IS_64BIT)
|
|
add_compile_options(-fPIC)
|
|
endif ()
|
|
|
|
if (BUILD_WITH_WARNINGS)
|
|
add_compile_options(-Wall -Wextra)
|
|
else ()
|
|
add_compile_options(-w)
|
|
endif ()
|