mirror of
https://github.com/edubart/otclient.git
synced 2025-10-18 21:43:26 +02:00
Compile with clang and add cotire
* Add cotire cmake module to speedup compilation https://github.com/sakra/cotire * Fix clang error and warnings * Rename Font to BitmapFont to fix conflict with Xlib.g Font typedef * Remove legacy PCH support * Improve Position hash
This commit is contained in:
@@ -28,8 +28,8 @@ ADD_EXECUTABLE(otclient ${framework_SOURCES} ${otclient_SOURCES} ${executable_SO
|
||||
TARGET_LINK_LIBRARIES(otclient ${framework_LIBRARIES})
|
||||
|
||||
IF(PCH)
|
||||
FIND_PACKAGE(PCHSupport REQUIRED)
|
||||
ADD_PRECOMPILED_HEADER(otclient ${CMAKE_CURRENT_SOURCE_DIR}/src/framework/pch.h)
|
||||
include(cotire)
|
||||
cotire(otclient)
|
||||
MESSAGE(STATUS "Use precompiled header: ON")
|
||||
ELSE()
|
||||
MESSAGE(STATUS "Use precompiled header: OFF")
|
||||
|
Reference in New Issue
Block a user