mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 21:13:26 +02:00
A lot of cmake changes, fix compile on win32
This commit is contained in:
@@ -7,7 +7,7 @@ INCLUDE(src/otclient/CMakeLists.txt)
|
||||
# functions map for reading backtraces
|
||||
SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -Wl,-Map=otclient.map")
|
||||
|
||||
OPTION(PCH "Use precompiled header (speed up compile)" OFF)
|
||||
OPTION(USE_PCH "Use precompiled header (speed up compile)" OFF)
|
||||
|
||||
SET(executable_SOURCES
|
||||
src/main.cpp
|
||||
@@ -29,7 +29,7 @@ ADD_EXECUTABLE(otclient ${framework_SOURCES} ${otclient_SOURCES} ${executable_SO
|
||||
# target link libraries
|
||||
TARGET_LINK_LIBRARIES(otclient ${framework_LIBRARIES})
|
||||
|
||||
IF(PCH)
|
||||
IF(USE_PCH)
|
||||
include(cotire)
|
||||
cotire(otclient)
|
||||
MESSAGE(STATUS "Use precompiled header: ON")
|
||||
|
Reference in New Issue
Block a user